Skip to contents

Extract the data returned by a call to fetch_vd(), filter columns of interest, and find unique rows if required.

Usage

extract_vd(res, cols = NA, returnunique = FALSE)

Arguments

res

a list of responses from VecDyn as an ohvbd.responses object.

cols

a character vector of columns to extract from the dataset.

returnunique

whether to return only the unique rows within each dataset according to the filtered columns.

Value

An ohvbd.data.frame containing the requested data.

Author

Francis Windram

Examples

if (FALSE) { # \dontrun{
fetch_vd(247) %>%
  extract_vd(cols=c("species",
                         "sample_start_date",
                         "sample_value"),
                  returnunique=TRUE)
} # }