Learn R Programming

refdb (version 0.1.2)

refdb_fill_tax_downstream: Fill missing data in taxonomy

Description

Replace NA values in taxonomic classification using upstream ranks.

Usage

refdb_fill_tax_downstream(x, qualifier = "indet.")

Value

A reference database.

Arguments

x

a reference database.

qualifier

a string to add the new labels. Default ensure that refdb_clean_tax_NA will correctly identify the label as NA.

See Also

refdb_fill_tax_upstream to replace NA values using downstream data.

Examples

Run this code
lib <- read.csv(system.file("extdata", "baetidae_bold.csv", package = "refdb"))
lib <- refdb_set_fields_BOLD(lib)
refdb_fill_tax_downstream(lib)

Run the code above in your browser using DataLab