pull.data: Downloads data for a specified data product or products, and...

Description Usage Arguments Value Author(s) Examples

Description

For the specified dates, site, package parameters, and data product or name of family of data products, data are downloaded and saved to the specifed directory.

Usage

1
2
pull.data(site, dp.id, bgn.month, end.month, time.agr, package = "basic",
  save.dir, complete.times = F)

Arguments

site

Parameter of class character. The NEON site data should be downloaded for.

dp.id

Parameter of class character. The data product code in question. See Noble::tis_pri_vars for a selected list of data product names and codes, or http://data.neonscience.org/data-product-catalog for a complete list.

bgn.month

Parameter of class character. The year-month (e.g. "2017-01") of the first month to get data for.

end.month

Parameter of class character. The year-month (e.g. "2017-01") of the last month to get data for.

time.agr

Parameter of class numeric. The data agregation interval requested, must be 1, 2, or 30.

package

Parameter of class character. Optional. The type of data package to be returned If not specified, defaults to basic.

save.dir

Parameter of class character. The local directory where data files should be saved.

complete.times

Optional. Parameter of class logical. Should gaps in the endDateTime column be filled? Defaults to FALSE (No gap filling).

Value

Writes data files to the specified directory.

Author(s)

Robert Lee rlee@battelleecology.org

Examples

1
2
3
4
5
6
## Not run: 
#Make a temporary directory for the example:
tempDir<- tempdir()
pull.data(site = "CPER", dp.id = "DP1.00002.001", bgn.month = "2017-04", end.month = "2017-05",
time.agr = 30, package="basic", save.dir= tempDir)
## End(Not run)

rhlee12/Noble documentation built on May 31, 2019, 10:36 a.m.