as_data_frame | R Documentation |
data.frame
Convert the information in a taxa object to a data.frame
using base R
vectors as columns. Use as_tibble to convert to tibbles.
as_data_frame( x, row.names = NULL, optional = FALSE, ..., stringsAsFactors = FALSE )
x |
An object defined by taxa, such as taxon or taxon_id |
row.names |
|
optional |
logical. If |
... |
additional arguments to be passed to or from methods. |
stringsAsFactors |
logical: should the character vector be converted to a factor? |
x <- taxon(name = c('Homo sapiens', 'Bacillus', 'Ascomycota', 'Ericaceae'), rank = c('species', 'genus', 'phylum', 'family'), id = taxon_id(c('9606', '1386', '4890', '4345'), db = 'ncbi'), auth = c('Linnaeus, 1758', 'Cohn 1872', NA, 'Juss., 1789')) as_data_frame(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.