rcf_data: Download MACA data from the cft package

Description Usage Arguments Value Examples

View source: R/rcf_data.R

Description

Downloads data from the cft package (https://www.earthdatascience.org/cft/) to your parent directory.

Usage

1
2
3
4
5
6
7
rcf_data(
  SiteID = "unnamed_site",
  latitude,
  longitude,
  units = "imperial",
  directory = tempdir()
)

Arguments

SiteID

chosen name to use in file names, attributes, and directories. (character)

latitude

latitude of point of interest (spatial)

longitude

longitude of point of interest (spatial)

units

the unit type that will be used, defaults to "imperial" ("imperial" or "metric")

directory

where to save files to. Per CRAN guidelines, this defaults to a temporary directory and files created will be lost after R session ends. Specify a path to retain files.

Value

one data frame - SiteID.csv - to be used with other functions in this package(tibble)

Examples

1
2
3
4
## Not run: 
rcf_data(SiteID = "SCBL", latitude = 41.83476, longitude =  -103.707)

## End(Not run)

nationalparkservice/rcfdata documentation built on Dec. 22, 2021, 12:02 a.m.