refdb_fill_tax_upstream {refdb}R Documentation

Fill missing data in taxonomy

Description

Replace NA values in taxonomic classification using downstream ranks.

Usage

refdb_fill_tax_upstream(x, qualifier = "undef.")

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.

Value

A reference database.

See Also

refdb_fill_tax_downstream to replace terminal NA values using upstream data.

Examples

lib <- read.csv(system.file("extdata", "baetidae_bold.csv", package = "refdb"))
lib <- refdb_set_fields_BOLD(lib)
refdb_fill_tax_upstream(lib)


[Package refdb version 0.1.1 Index]