lagosne_select {LAGOSNE} | R Documentation |
Select and filter LAGOSNE data
Description
Select and filter LAGOSNE data with keyword helpers.
Usage
lagosne_select(
table = NULL,
vars = NULL,
categories = NULL,
dt = lagosne_load(lagosne_version())
)
Arguments
table |
character name of a dt table |
vars |
character vector of specific column names to select from table |
categories |
what type of variables should be kept. Note not all scale-category options are available. Variable categories include:
|
dt |
data.frame of local copy of LAGOSNE data. Can be loaded with |
Examples
## Not run:
dt <- lagosne_load("1.087.3")
# specific variables
head(lagosne_select(table = "epi_nutr", vars = c("tp", "tn")))
head(lagosne_select(table = "iws.lulc", vars = c("iws_nlcd2011_pct_95")))
# categories
head(lagosne_select(table = "epi_nutr", categories = "waterquality"))
head(lagosne_select(table = "county.chag", categories = "hydrology"))
head(lagosne_select(table = "hu4.chag", categories = "deposition"))
# mix of specific variables and categories
head(lagosne_select(table = "epi_nutr", vars = "lagoslakeid", categories = c("waterquality")))
## End(Not run)