| unparse.trait | R Documentation |
For a few of the RDS-related functions, it is useful to combine several traits into one variable as a string; for example, "male" and "young" might become "male.young". this function takes a string with combined traits and explodes it back into several variables.
unparse.trait(trait.string, names, sep = "\\.")
trait.string |
A vector whose values are collapsed traits |
names |
A vector with the names of each trait (in order) |
sep |
The character used to separate the traits in their collapsed string representation |
A dataframe whose rows correspond to the entries in
trait.string, with one column per trait
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.