View source: R/select_taxonomy.R
select_taxonomy | R Documentation |
Selects a taxonomy in FORCIS data. FORCIS database provides three different
taxonomies: "LT"
(lumped taxonomy), "VT"
(validated taxonomy) and "OT"
(original taxonomy). See https://doi.org/10.1038/s41597-023-02264-2 for
further information.
select_taxonomy(data, taxonomy)
data |
a |
taxonomy |
a |
A data.frame
.
# Attach the package ----
library("forcis")
# Import example dataset ----
file_name <- system.file(file.path("extdata", "FORCIS_net_sample.csv"),
package = "forcis")
net_data <- read.table(file_name, dec = ".", sep = ";")
# Add 'data_type' column ----
net_data$"data_type" <- "Net"
# Dimensions of the data.frame ----
dim(net_data)
# Select a taxonomy ----
net_data <- select_taxonomy(net_data, taxonomy = "VT")
# Dimensions of the data.frame ----
dim(net_data)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.