Difference between revisions of "R Packages"

From Age of Water
Jump to: navigation, search
 
(14 intermediate revisions by one user not shown)
Line 1: Line 1:
 
[[Category:Task]]
 
[[Category:Task]]
 
<!-- Add any wiki Text above this Line -->
 
<!-- Add any wiki Text above this Line -->
 
 
====Installing R====
 
 
  
 
===Installing required packages===
 
===Installing required packages===
  
 
'''Lake Analyzer''' <br />
 
'''Lake Analyzer''' <br />
In R, type: <br />
+
In R, type:  
<code> install.packages('rLakeAnalyzer') </code><br />
+
<code><pre> install.packages('rLakeAnalyzer') </pre></code>
To use package, type: <br />
+
To use package, type:  
<code> library(LakeAnalyzer) </code><br />
+
<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
  
 
'''Lake Metabolizer''' <br />
 
'''Lake Metabolizer''' <br />
In R, type: <br />
+
In R, type:  
<code> install.packages('LakeMetabolizer') </code><br />
+
<code><pre> install.packages('LakeMetabolizer') </pre></code>
To use package, type: <br />
+
To use package, type:  
<code> ibrary(LakeMetabolizer) </code><br />
+
<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
  
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:  
<code> search() </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:''<br />
+
<code> install.packages("ncdf4",repos = "http://gleon.github.com/",type = "win.binary") </code><br />
+
''then'' <br />
+
<code> install.packages("glmtools",repos = c("http://gleon.github.com/", <br />
+
"http://cran.us.r-project.org"), dependencies = TRUE,type = "both",<br />
+
INSTALL_opts = "--no-multiarch") </code>
+
 
+
''For OSX or Linux use the following command in R:''<br />
+
<code> install.packages("glmtools",repos = c('http://gleon.github.com/', <br />
+
'http://cran.us.r-project.org'), dependencies = TRUE,type = "both")</code><br />
+
 
+
  
 
<!-- Do NOT Edit below this Line -->
 
<!-- Do NOT Edit below this Line -->
 
{{#set:
 
{{#set:
 
Owner=Hilary_Dugan|
 
Owner=Hilary_Dugan|
 +
Participants=Jordan_Read|
 +
Progress=100|
 
StartDate=2014-10-06|
 
StartDate=2014-10-06|
 
TargetDate=2014-10-10|
 
TargetDate=2014-10-10|
 
Type=Low}}
 
Type=Low}}

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