View source: R/interpret_variable_names.R
interpret_variable_names | R Documentation |
Adds labels to variable names that are provided without labels
interpret_variable_names(x, type)
x |
Vector of names of variables |
type |
The label to add (either of "locus", "edge", "individual" or "trait") |
The function adds the specified label to the variable names. For example,
"Fst" becomes "locus_Fst" if type = "locus"
. It will not add a label
if it detects that the label is already there, i.e. "locus_Fst" will stay "locus_Fst".
A vector of strings
In the case of type = "trait"
some variable names will be considered
exceptions to which not to add a label. These are the variables that are saved
per time point and/or per ecotype or habitat but not per trait
("EI", "RI", "SI", "population_sizes", "ecotype_population_sizes" and "habitat_resources")
interpret_variable_names(c("Fst", "Qst"), "locus") interpret_variable_names(c("corbreed", "corfreq"), "edge")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.