get_nlcd_data: get NLCD data for NLCD cells

View source: R/nlcd_data_functions.R

get_nlcd_dataR Documentation

get NLCD data for NLCD cells

Description

get NLCD data for NLCD cells

Usage

get_nlcd_data(raw_data, product = c("nlcd", "impervious",
  "imperviousdescriptor"), year = c(2001, 2006, 2011, 2016))

Arguments

raw_data

data.frame with column 'nlcd_cell'

product

a character string of desired nlcd variables; a subset of c("nlcd", "impervious", "imperviousdescriptor")

year

a numeric vector of desired nlcd years; a subset of c(2001, 2006, 2011, 2016)

Value

a data.frame identical to the input data.frame but with appended NLCD values (and in long format)

Examples

if (FALSE) {
d <- data.frame(
  id = c('1a', '2b', '3c'),
  nlcd_cell = c(7814606790, 7814606790, 7756256174)
)

get_nlcd_data(d, product = c("nlcd", "impervious"), year = c(2011, 2016))
}

geomarker-io/addNlcdData documentation built on Feb. 19, 2023, 1:42 p.m.