nneo_data: Data

View source: R/nneo_data.R

nneo_dataR Documentation

Data

Description

Data

Usage

nneo_data(product_code, site_code, year_month, package = NULL, ...)

nneo_file(product_code, site_code, year_month, filename, ...)

Arguments

product_code

(character) a product code. required.

site_code

(character) a site code. required.

year_month

(character) YYYY-MM month to check for files. required.

package

(character) Package type to return, basic or expanded. optional.

...

named curl options passed on to HttpClient, e.g., list(verbose = TRUE) or list(timeout_ms = 1000)

filename

(character) a file name. optional.

Details

nneo_data gets files available for a given product/site/month combination.

nneo_file gets a file, and returns a data.frame

Value

nneo_data returns a list, while nneo_file returns a tibble/data.frame

Examples

## Not run: 
nneo_data(product_code = "DP1.00098.001", site_code = "HEAL",
  year_month = "2016-05")

nneo_data(product_code = "DP1.00098.001", site_code = "HEAL",
  year_month = "2016-05")

## with a package
nneo_data(product_code = "DP1.00098.001", site_code = "HEAL",
  year_month = "2016-05", package = "basic")
nneo_data(product_code = "DP1.00098.001", site_code = "HEAL",
  year_month = "2016-05", package = "expanded")

## with a file name
fname <- "NEON.D19.HEAL.DP1.00098.001.003.000.030.RH_30min.2016-05.expanded.20171026T085604Z.csv"
nneo_file(product_code = "DP1.00098.001", site_code = "HEAL",
  year_month = "2016-05", filename = fname)

## curl options
nneo_data(product_code = "DP1.00098.001", site_code = "HEAL",
  year_month = "2016-05", verbose = TRUE)

## End(Not run)

ropensci/nneo documentation built on May 11, 2022, 3:12 p.m.