ll2webdata: Download online data for spatial locations that are needed...

Description Usage Arguments Value Examples

View source: R/loc_onlineinfo.R

Description

Downloads required data for spatial locations in order to run model.

Usage

1
ll2webdata(coords, years, model = "7_4")

Arguments

coords

An sf object with coordinates.

years

Years of woody cover to use.

model

A character code providing the model for which data to acquire

Value

A dataframe with columns of woody500m each year, and climatic information.

Examples

1
2
3
4
locations <- read.csv("./private/data/clean/site_locations_cleaned.csv")
locs <- sf::st_as_sf(locations, coords = c("MeanLON", "MeanLAT"), crs = 4326)
coords <- locs[ locs$StudyCode == "Nanangroe Natural Experiment", ]
fromwebdata <- ll2webdata(coords, 2017:2019)

sustainablefarms/linking-data documentation built on Oct. 28, 2020, 2:41 a.m.