dct_drop_row | R Documentation |
Drop one or more rows from a taxonomic database in Darwin Core (DwC) format by taxonID or scientificName.
dct_drop_row(tax_dat, taxonID = NULL, scientificName = NULL)
tax_dat |
Dataframe; taxonomic database in DwC format. |
taxonID |
Character or numeric vector; taxonID of the row(s) to be dropped. |
scientificName |
Character vector; scientificName of the row(s) to be dropped. |
Only works if values of taxonID or scientificName are unique and non-missing in the taxonomic database (tax_dat).
Either taxonID or scientificName should be provided, but not both.
Dataframe; taxonomic database in DwC format
# Can drop rows by scientificName or taxonID
dct_filmies |>
dct_drop_row(scientificName = "Cephalomanes atrovirens Presl")
dct_filmies |>
dct_drop_row(taxonID = "54133783")
# Can drop multiple rows at once by providing multiple values for
# scientificName or taxonID
dct_filmies |>
dct_drop_row(
scientificName = c(
"Cephalomanes atrovirens Presl",
"Trichomanes crassum Copel."
)
)
dct_filmies |>
dct_drop_row(
taxonID = c(
"54133783", "54133783"
)
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.