Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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 data

nsws_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)
```