Difference between revisions of "R Packages"

From Age of Water
Jump to: navigation, search
 
(2 intermediate revisions by one user not shown)
Line 8: Line 8:
 
<code><pre> install.packages('rLakeAnalyzer') </pre></code>
 
<code><pre> install.packages('rLakeAnalyzer') </pre></code>
 
To use package, type:  
 
To use package, type:  
<code><pre> library(LakeAnalyzer) </pre></code>
+
<code><pre> library(rLakeAnalyzer) </pre></code>
 
see [http://cran.r-project.org/web/packages/rLakeAnalyzer/rLakeAnalyzer.pdf Lake Analyzer pdf] for help
 
see [http://cran.r-project.org/web/packages/rLakeAnalyzer/rLakeAnalyzer.pdf Lake Analyzer pdf] for help
  
Line 20: Line 20:
 
To see which packages are currently loaded into your R session, type:  
 
To see which packages are currently loaded into your R session, type:  
 
<code><pre> search() </pre></code>  
 
<code><pre> search() </pre></code>  
 
'''GLMtools''' (Not on CRAN) <br />
 
instructions from [https://github.com/USGS-R/glmtools USGS github]
 
 
''For windows use the following command in R:''
 
<code><pre> install.packages("ncdf4",repos = "http://gleon.github.com/",type = "win.binary") </pre></code>
 
''then''
 
<code><pre> install.packages("glmtools",repos = c("http://gleon.github.com/",
 
"http://cran.us.r-project.org"), dependencies = TRUE,type = "both",
 
INSTALL_opts = "--no-multiarch") </pre></code>
 
 
''For OSX or Linux use the following command in R:''
 
<code> <pre>install.packages("glmtools",repos = c('http://gleon.github.com/',
 
'http://cran.us.r-project.org'), dependencies = TRUE,type = "both")</pre></code>
 
 
  
 
<!-- Do NOT Edit below this Line -->
 
<!-- Do NOT Edit below this Line -->

Latest revision as of 19:33, 22 October 2014


Installing required packages

Lake Analyzer
In R, type:

 install.packages('rLakeAnalyzer') 

To use package, type:

 library(rLakeAnalyzer) 

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() 


Yandex.Metrica