Learn R Programming

nneo (version 0.1.0)

nneo_data: 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.

Value

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

Details

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

nneo_file gets a file, and returns a data.frame

Examples

Run this code

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.00000.000.040.001.RH_1min.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)

Run the code above in your browser using DataLab