Skip to contents

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

Usage

extract_vt(res, cols = NA, returnunique = FALSE, check_src = TRUE)

Arguments

res

a list of responses from VecTraits 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.

check_src

toggle pre-checking of source data.

Value

An ohvbd.data.frame containing the requested data.

Author

Francis Windram

Examples

if (FALSE) { # \dontrun{
fetch_vt(54) %>%
  extract_vt(cols=c("DatasetID",
                         "Interactor1Genus",
                         "Interactor1Species"),
                  returnunique=TRUE)
} # }