Base R functions to support statistical methods in water resources.
Please consider reporting bugs and asking questions on the Issues page: https://github.com/USGS-R/smwrData/issues
@USGS_R on Twitter for updates on USGS R packages:
We want to encourage a warm, welcoming, and safe environment for contributing to this project. See the code of conduct for more information.
To install the
USGS R Installation Instructions: https://owi.usgs.gov/R/training-curriculum/installr/
Install R (version 3.0 or greater) from: https://cran.r-project.org/
Install RStudio from: https://www.rstudio.com/products/rstudio/download/
Add the USGS R repository to your "Rprofile" to get automatic updates. Run the following code:
```r rprofile_path = file.path(Sys.getenv("HOME"), ".Rprofile") write('\noptions(repos=c(getOption(\'repos\'), CRAN=\'https://cloud.r-project.org\', USGS=\'https://owi.usgs.gov/R\'))\n', rprofile_path, append = TRUE)
cat('Your Rprofile has been updated to include GRAN. Please restart R for changes to take effect.') ```
In the RStudio "Console" window (usually left or lower-left), run the following command:
smwrDatawill automatically update:
This software is in the public domain because it contains materials that originally came from the U.S. Geological Survey, an agency of the United States Department of Interior. For more information, see the official USGS copyright policy at https://www.usgs.gov/visual-id/credit_usgs.html#copyright
Although this software program has been used by the U.S. Geological Survey (USGS), no warranty, expressed or implied, is made by the USGS or the U.S. Government as to the accuracy and functioning of the program and related program material nor shall the fact of distribution constitute any such warranty, and no responsibility is assumed by the USGS in connection therewith.
This software is provided "AS IS."
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.