filter_by | R Documentation |
by
, and values given
by the vector x
, and then uses this table to do a filtering join,
joining on the by
column to return all rows matching the x
values
(scientificNames, taxonIDs, etc).Creates a data frame with column name given by by
, and values given
by the vector x
, and then uses this table to do a filtering join,
joining on the by
column to return all rows matching the x
values
(scientificNames, taxonIDs, etc).
filter_by(
x,
by,
provider = getOption("taxadb_default_provider", "itis"),
schema = c("dwc", "common"),
version = latest_version(),
collect = TRUE,
db = td_connect(),
ignore_case = FALSE
)
x |
a vector of values to filter on |
by |
a column name in the taxa_tbl (following Darwin Core Schema terms). The filtering join is executed with this column as the joining variable. |
provider |
from which provider should the hierarchy be returned?
Default is 'itis', which can also be configured using |
schema |
One of "dwc" (for Darwin Core data) or "common" (for the Common names table.) |
version |
Which version of the taxadb provider database should we use? defaults to latest. See tl_import for details. |
collect |
logical, default |
db |
a connection to the taxadb database. See details. |
ignore_case |
should we ignore case (capitalization) in matching names? Can be significantly slower to run. |
a data.frame in the Darwin Core tabular format containing the matching taxonomic entities.
Other filter_by:
filter_common()
,
filter_id()
,
filter_name()
,
filter_rank()
sp <- c("Trochalopteron henrici gucenense",
"Trochalopteron elliotii")
filter_by(sp, "scientificName")
filter_by(c("ITIS:1077358", "ITIS:175089"), "taxonID")
filter_by("Aves", "class")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.