View source: R/recode_traits.R
recode_traits | R Documentation |
Change the names of the traits in a vector from 1, 2 and 3 to "Ecological", "Mating" and "Neutral", respectively.
recode_traits(x)
x |
A vector of trait numbers |
A vector of factors
forcats::fct_recode
recode_traits(1:3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.