knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "images/"
)

nlaR

lifecycle CRAN status R-CMD-check

The goal of nlaR is to provide an R interface to the National Lakes Assessment data. At this point it serves either the 2007 or 2012 data (see examples below).

Installation

You can install nlaR from Github with:

# install.packages("devtools")
devtools::install_github("jsta/nlaR")

Usage

Load package

library(nlaR)

Retrieve data from EPA Website

Turn on automated data storage at the location returned by rappdirs::user_data_dir()

nla_get(2012, use_rappdirs = TRUE)

Load data from local machine

dt <- nla_load(2012)

View NLA tables

names(dt)
head(dt$phytocnt)

More Examples

See vignettes.

References



jsta/nlaR documentation built on March 23, 2023, 11:53 p.m.