get_names | R Documentation |
This function serves as a help for the user to generate the wished columns names. The function works well in combination with dplyr using the argument contains in select. There is no requirements for input other than it's a string.
get_names(names, n_sib = 0, id = TRUE, parents = TRUE)
names |
Names of the the values to add a postfix to e.g. l_g. |
n_sib |
Amount of siblings. |
id |
If TRUE add a postfix for the subject. |
parents |
If TRUE add postfix for parents. |
A vector containing the names for each family member.
get_names(c("l_g", "l_e"), n_sib = 2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.