get_lakescape: Get lakescape

Description Usage Arguments Value Examples

View source: R/get_lakescape.R

Description

The get_lakescape function uses a lake and a user defined landscape around that lake (i.e. the lakescape) to summarize various sources of ancillary geospatial data.

Usage

1
2
get_lakescape(lake, lakescape, id = data.frame(id = 1),
  data_src = c("census", "lulc", "impervious"), keep_output = F, ...)

Arguments

lake

A valid sf object of the polygon(s) that make up the lake.

lakescape

A valid sf object of the user-defined landscape surrounding the lake.

id

A 1x1 data frame containing the id and name. Defualt is data.frame(id = 1).

data_src

A character vector indicating which data source(s) to summarize. Valid entries include: "census", "lulc", or, "impervious"

keep_output

A logical to indicate whether or not to save geospatial data for the census, lulc, or impervious in the lakescape

...

Placeholder, cuz we might need it.

Value

Either a sf object with the lakescape as the geometry and summarized landscape values (e.g. total pop, total impervious, etc.) as columns or a lakescape object with the lakescape and output sf object for the census, and raster objects for the impervious and land cover.

Examples

1
2
3
4
data(lake_sf, package = "lakescape")
lakescape <- sf::st_buffer(lake_sf, 3000)
get_lakescape(lake_sf, lakescape, data.frame(COMID = lakescape$COMID),
              "census")

willbmisled/lakescape documentation built on May 5, 2019, 9:03 p.m.