Learn R Programming

prism (version 0.1.0)

get_metadata: Get PRISM metadata

Description

Retrieves PRISM metadata for a given type and date range. The information is retrieved from the .info.txt file.

Usage

get_metadata(type, dates = NULL, minDate = NULL, maxDate = NULL)

Arguments

type

The type of data to download, must be "ppt", "tmean", "tmin", or "tmax". Note that tmean == mean(tmin, tmax).

dates

a vector of iso-8601 formatted dates to download data for, can also be a single date. May be provided as either a character or Date class.

minDate

a valid iso-8601 (e.g. YYYY-MM-DD) date to start downloading data. May be provided as either a character or Date class.

maxDate

a valid iso-8601 (e.g. YYYY-MM-DD) date to end downloading data. May be provided as either a character or Date class.

Value

list of data.frames containing metadata. If only one date is requested, the function returns the data.frame.