| scatter | R Documentation |
Scatter each taxon in a taxondf to a taxon object
scatter(x, ...) assemble(x, ...) ## S3 method for class 'taxa' assemble(x, ...)
x |
A taxonomic data.frame |
... |
Further args, ignored for now |
Right now, assemble may not give back the identical data.frame that one
would pass to scatter.
Gives a taxa object, with each individual component a row from your
data.frame, and of class taxon
# operating on taxonomic data.frames
df <- data.frame(class=c('Magnoliopsida','Magnoliopsida','Magnoliopsida',
'Magnoliopsida','Magnoliopsida','Magnoliopsida'),
order=c('Asterales','Asterales','Fagales','Poales','Poales','Poales'),
family=c('Asteraceae','Asteraceae','Fagaceae','Poaceae','Poaceae','Poaceae'),
genus=c('Helianthus','Helianthus','Quercus','Poa','Festuca','Holodiscus'),
stringsAsFactors = FALSE)
(df2 <- taxon_df(df))
## scatter each taxon into a taxon class
df2 %>% scatter()
## re-assemble
df2
df2 %>% scatter()
df2 %>% scatter() %>% assemble
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.