Learn R Programming

manureshed (version 0.1.3)

load_builtin_nugis: Load Built-in NuGIS Data from OSF

Description

Load built-in NuGIS data from OSF repository for specified year and spatial scale. Data includes all years from 1987 through 2016.

Usage

load_builtin_nugis(scale, year = 2016, force_download = FALSE, verbose = TRUE)

Value

Data frame of NuGIS data for specified scale and year

Arguments

scale

Character. Spatial scale: "county", "huc8", or "huc2"

year

Numeric. Year to filter data (available: 1987-2016)

force_download

Logical. Force re-download even if cached

verbose

Logical. Show download progress

Examples

Run this code
# \donttest{
# Load county data for 2016
county_2016 <- load_builtin_nugis("county", 2016)

# Load HUC8 data for 2010
huc8_2010 <- load_builtin_nugis("huc8", 2010)

# Load county data for 2010, force fresh download
county_2010 <- load_builtin_nugis("county", 2010, force_download = TRUE)
# }

Run the code above in your browser using DataLab