refdb_filter_ref_scope: Filter records by taxonomic scope of studies

View source: R/refdb_filter.R

refdb_filter_ref_scopeR Documentation

Filter records by taxonomic scope of studies

Description

Filter records by taxonomic scope of studies

Usage

refdb_filter_ref_scope(x, max_tax)

Arguments

x

a reference database (tibble).

max_tax

the maximum (widest) taxonomic focus of the study.

Details

A reference field (one ore more columns) must be set to use this function. If reference is not available (NA) for a record, the record is not dropped.

Value

a reference database (tibble).

Examples

lib <- read.csv(system.file("extdata", "baetidae_bold.csv", package = "refdb"))
lib <- refdb_set_fields_BOLD(lib)
lib$refs <- rep("REF_1", nrow(lib))
lib <- refdb_set_fields(lib, reference = "refs")
refdb_filter_ref_scope(lib, max_tax = "family_name")


refdb documentation built on Sept. 22, 2022, 5:07 p.m.