Difference between revisions of "R Packages"

From Age of Water
Jump to: navigation, search
Line 10: Line 10:
 
'''Lake Analyzer''' <br />
 
'''Lake Analyzer''' <br />
 
In R, type: <br />
 
In R, type: <br />
<code> install.packages('rLakeAnalyzer') code</code>
+
<code> install.packages('rLakeAnalyzer') </code><br />
 
To use package, type: <br />
 
To use package, type: <br />
> library(LakeAnalyzer) <br />
+
<code> library(LakeAnalyzer) </code><br />
 
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
  
 
'''Lake Metabolizer''' <br />
 
'''Lake Metabolizer''' <br />
 
In R, type: <br />
 
In R, type: <br />
> install.packages('LakeMetabolizer') <br />
+
<code> install.packages('LakeMetabolizer') </code><br />
 
To use package, type: <br />
 
To use package, type: <br />
> library(LakeMetabolizer) <br />
+
<code> ibrary(LakeMetabolizer) </code><br />
 
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
  
 
To see which packages are currently loaded into your R session, type: <br />
 
To see which packages are currently loaded into your R session, type: <br />
> search()
+
<code> search() </code>
  
 
'''GLMtools''' (Not on CRAN) <br />
 
'''GLMtools''' (Not on CRAN) <br />
Line 29: Line 29:
  
 
''For windows use the following command in R:''<br />
 
''For windows use the following command in R:''<br />
>install.packages("ncdf4",repos = "http://gleon.github.com/",type = "win.binary") <br />
+
<code> install.packages("ncdf4",repos = "http://gleon.github.com/",type = "win.binary") </code><br />
>install.packages("glmtools",repos = c("http://gleon.github.com/", "http://cran.us.r-project.org"), <br />
+
<code> install.packages("glmtools",repos = c("http://gleon.github.com/", "http://cran.us.r-project.org"),  
dependencies = TRUE,type = "both",INSTALL_opts = "--no-multiarch") <br />
+
dependencies = TRUE,type = "both",INSTALL_opts = "--no-multiarch") </code><br />
  
 
''For OSX or Linux use the following command in R:''<br />
 
''For OSX or Linux use the following command in R:''<br />
>install.packages("glmtools",repos = c('http://gleon.github.com/', 'http://cran.us.r-project.org'),dependencies = TRUE,type = "both")
+
<code> install.packages("glmtools",repos = c('http://gleon.github.com/', 'http://cran.us.r-project.org'),dependencies = TRUE,type = "both")</code><br />
  
  

Revision as of 16:52, 6 October 2014


Installing R

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:
ibrary(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")
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