ppo_traits_flatten | R Documentation |
Turn the traits element or the entire list returned by [pp_traits()] into a data.frame.
ppo_traits_flatten(x, flatten_all = FALSE)
x |
(object) A list or data.frame as returned from link(rppo)[ppo_traits] |
flatten_all |
(logical) Should the output list be melted in a data.frame. Default : FALSE |
A list for each event id containing a list with the following elements:
'metadata': A data frame containing metadata
'taxonomy': A data.frame containing the taxonomy
'traits': A melted data.frame containing the traits value
IF flatten_all is TRUE, the list is flatten to a data.frame
r1 <- ppo_data(genus = "Quercus", termID = 'obo:PPO_0002313', limit = 10, timeLimit = 4)
r1_traits <- ppo_traits(r1, sorted = FALSE, flatten_traits = FALSE)
r1_traits <- ppo_traits_flatten(r1_traits, flatten_all = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.