Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jsta/nsws
National Surface Water Survey Package
https://github.com/jsta/nsws
Last synced: about 1 month ago
JSON representation
National Surface Water Survey Package
- Host: GitHub
- URL: https://github.com/jsta/nsws
- Owner: jsta
- Created: 2017-12-14T15:13:38.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-04-04T21:17:21.000Z (almost 7 years ago)
- Last Synced: 2024-06-11T17:08:55.757Z (7 months ago)
- Language: R
- Homepage: https://archive.epa.gov/emap/archive-emap/web/html/els.html
- Size: 734 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.Rmd
Awesome Lists containing this project
README
---
output:
md_document:
variant: markdown_github
---```{r, echo = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "README-"
)
```# National Surface Water Survey Package
[![lifecycle](https://img.shields.io/badge/lifecycle-stable-brightgreen.svg)](https://img.shields.io/badge/lifecycle-stable-brightgreen.svg)
[![CRAN status](http://www.r-pkg.org/badges/version/nsws)](https://cran.r-project.org/package=nsws)
[![DOI](https://zenodo.org/badge/114264836.svg)](https://zenodo.org/badge/latestdoi/114264836)## Metadata
See the [eastern](https://archive.epa.gov/emap/archive-emap/web/html/els.html) and [western](https://archive.epa.gov/emap/archive-emap/web/html/wls.html) survey pages.
See also:
> Landers, D.H., Overton, W.S., Linthurst, R.A. and Brakke, D.F., 1988. Eastern Lake Survey, regional estimates of lake chemistry. Environmental science & technology, 22(2), pp.128-135.
## Installation
```{r eval=FALSE}
# install development version from Github
# install devtools if not found - install.packages("devtools")
devtools::install_github("jsta/nsws", update_dependencies = TRUE)
```## Usage
```{r eval=TRUE}
library(nsws)
```### Load archived package data
```{r }
data(nsws)
names(nsws) # the entire western lake survey is in the wlsds4 table
```### Build package data
```{r eval=FALSE}
# Download raw datansws_east_get(version = "1")
nsws_west_get(version = "1") # Data from both surveys are "compiled" here
``````{r eval=TRUE}
# Load data from cache
dt <- nsws_load("1")# View tables
names(dt)
tibble::as.tibble(dt$bathym)
```