pplr_get_data: Download data from the popler database

Description Usage Arguments Details Value Examples

View source: R/get_data.R

Description

This function downloads datasets contained in the popler database. The user can download data directly, using a logical expression, or indirectly, using objects created by pplr_browse.

Usage

1
pplr_get_data(..., cov_unpack = FALSE)

Arguments

...

An object produced by pplr_browse or a logical expression.

cov_unpack

logical; if TRUE, function pplr_cov_unpack is applied to the variable covariates of the downloaded dataset in order to extract the variables contained in therein and combine the new columns with the default output. Default is FALSE.

Details

. By default, the following variables are included when a user calls pplr_get_data().

Value

This data fame is of class get_data, and data.frame.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
## Not run: 
# browse a study, then get the data associated with it
parasite = pplr_browse(proj_metadata_key == 25)
gh_data = pplr_get_data(parasite)

# insect data sets from the SEV lter site
insect_sev = pplr_browse(class == "Insecta" & lterid == "SEV")
insect_25_yrs96_99 = pplr_get_data(insect_sev)

insect_21_25 = pplr_get_data( (proj_metadata_key == 43 | 
                               proj_metadata_key == 25) )

## End(Not run)

AldoCompagnoni/poplerr documentation built on Nov. 15, 2019, 9:14 a.m.