Description Usage Arguments Value Examples
View source: R/get_lakescape.R
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.
1 2 | get_lakescape(lake, lakescape, id = data.frame(id = 1),
data_src = c("census", "lulc", "impervious"), keep_output = F, ...)
|
lake |
A valid |
lakescape |
A valid |
id |
A 1x1 data frame containing the id and name. Defualt is
|
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. |
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.
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")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.