extract_NLCD: Extract NLCD Areas

Description Usage Arguments Value

View source: R/extract_NLCD.R

Description

Extracts and calculates the area of NLCD classes for a specified feature. Returns a long tibble with percent and area for each class and feature.

Usage

1
2
3
4
5
6
7
8
extract_NLCD(
  feature,
  id_variable,
  area_units = "acres",
  crs,
  year = 2016,
  dataset = "Land_Cover"
)

Arguments

feature

feature to extract and calculate NLCD class areas. Can be class sp or sf with one or multiple features.

id_variable

unquoted id variable in feature, must have unique value for each row.

area_units

desired output units. probably one of c("acres","mi^2"). See units::valid_udunits() for more units.

crs

coordinate reference system: integer with the EPSG code, or character with proj4string

year

An integer representing the year of desired NLCD product. Acceptable values are 2016 (default), 2011, 2008 (landcover only), 2006, 2004, and 2001.

dataset

A character string representing type of the NLCD product. Acceptable values are 'Impervious', 'Land_Cover', 'Tree_Canopy' (2011 and 2016 only),

Value

something


mps9506/mpsrf documentation built on Sept. 25, 2020, 9:33 a.m.