Difference between revisions of "R Packages"

From Age of Water
Jump to: navigation, search
(Added PropertyValue: Participants = Jordan Read)
Line 15: Line 15:
 
<code><pre> install.packages('LakeMetabolizer') </pre></code>
 
<code><pre> install.packages('LakeMetabolizer') </pre></code>
 
To use package, type:  
 
To use package, type:  
<code><pre> ibrary(LakeMetabolizer) </pre></code>
+
<code><pre> library(LakeMetabolizer) </pre></code>
 
see [http://cran.r-project.org/web/packages/LakeMetabolizer/LakeMetabolizer.pdf Lake Metabolizer pdf] for help
 
see [http://cran.r-project.org/web/packages/LakeMetabolizer/LakeMetabolizer.pdf Lake Metabolizer pdf] for help
  
Line 25: Line 25:
  
 
''For windows use the following command in R:''
 
''For windows use the following command in R:''
<code><pre>install.packages("ncdf4",repos = "http://gleon.github.com/",type = "win.binary") </pre></code>
+
<code><pre> install.packages("ncdf4",repos = "http://gleon.github.com/",type = "win.binary") </pre></code>
 
''then''  
 
''then''  
 
<code><pre> install.packages("glmtools",repos = c("http://gleon.github.com/",
 
<code><pre> install.packages("glmtools",repos = c("http://gleon.github.com/",

Revision as of 17:16, 6 October 2014


Installing required packages

Lake Analyzer
In R, type:

 install.packages('rLakeAnalyzer') 

To use package, type:

 library(LakeAnalyzer) 

see Lake Analyzer pdf for help

Lake Metabolizer
In R, type:

 install.packages('LakeMetabolizer') 

To use package, type:

 library(LakeMetabolizer) 

see Lake Metabolizer pdf for help

To see which packages are currently loaded into your R session, type:

 search() 

GLMtools (Not on CRAN)
instructions from USGS github

For windows use the following command in R:

 install.packages("ncdf4",repos = "http://gleon.github.com/",type = "win.binary") 

then

 install.packages("glmtools",repos = c("http://gleon.github.com/",
"http://cran.us.r-project.org"), dependencies = TRUE,type = "both",
INSTALL_opts = "--no-multiarch") 

For OSX or Linux use the following command in R:

install.packages("glmtools",repos = c('http://gleon.github.com/', 
'http://cran.us.r-project.org'), dependencies = TRUE,type = "both")


Yandex.Metrica