fetch_woody_cover_meanbuffer: Extract mean woody cover within buffers for a set of points

View source: R/woody_vals_buffer.R

fetch_woody_cover_meanbufferR Documentation

Extract mean woody cover within buffers for a set of points

Description

Extract mean woody cover within buffers for a set of points

Usage

fetch_woody_cover_meanbuffer(pts, years, buffers)

Arguments

pts

is a set of sf points within roi

years

Years of data to acquire

buffers

Multiple buffers given in METRES.

roi

is an sf object.

Value

A list corresponding to each buffer distance. In each element each row is a point, each column is a date

Examples

locations <- read.csv("./private/data/clean/site_locations_cleaned.csv")[1:2, ]
pts <- sf::st_as_sf(locations, coords = c("MeanLON", "MeanLAT"), crs = 4326)[1:2, ]
years <- 2000:2001
buffers <- c(100, 500)
global_muffle_discarddatumwarn()
fetch_woody_cover_meanbuffer(pts, years, buffers)

sustainablefarms/sflddata documentation built on April 19, 2022, 11:19 a.m.