This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Get a list of all your installed packages (so that you can reinstall them after updating R) | |
a <- installed.packages() | |
my_pkgs <- dimnames(a)[[1]] | |
save(my_pkgs, file="my_pkgs.RData") | |
# exit R, reopen R, then continue to following | |
load("my_pkgs.RData") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Test case for calculating metabolism | |
library(LakeMetabolizer) | |
#set up test example where DO starts and ends at same level, is at saturation (= no flux) | |
DOobs = c(3, 2, 3, 4, 3, 2) | |
DOsat = c(3, 2, 3, 4, 3, 2) | |
kGas = c(.2, .2, .2, .2, .2, .2) | |
zMix = c(1, 1, 1, 1, 1, 1) | |
irr = c(0, 1, 1, 0, 0, 0) |