numbers | R Documentation |
get_numbers
returns the number of samples, taxa and reads in a
tidyamplicons object.
numbers(ta)
ta |
Tidyamplicons object. |
This function returns the number of samples, taxa and reads in a
tidyamplicons object, stored in a named numeric vector. To print the numbers,
use report_numbers
instead.
# Initiate abundance matrix
x <- matrix(
c(1500, 1300, 280, 356),
ncol = 2
)
rownames(x) <- c("taxon1", "taxon2")
colnames(x) <- c("sample1", "sample2")
# Convert to tidyamplicons object
data <- create_tidyamplicons(x, taxa_are_columns = FALSE)
# Report numbers
numbers <- data %>% get_numbers()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.