df2site_sf: Create an sf object of available sites

Description Usage Arguments Value See Also

View source: R/st_indicators.R

Description

Extracts the location information from a data frame and transforms into a sf object.

Usage

1
df2site_sf(df, site_id, lon, lat, crs)

Arguments

df

a data frame of the data set

site_id

the name of the column containing location IDs

lon

the name of the column containing the location's longitude

lat

the name of the column containing the location's latitude

crs

the code for the Coordinate Reference System

Value

a sf object, containing the geographic information for each location in df

See Also

st_as_sf


mrfoliveira/Evaluation-procedures-for-forecasting-with-spatio-temporal-data documentation built on April 11, 2021, 10:50 a.m.