Description Usage Arguments Value Examples
View source: R/padis_general_functions.R
Gather multiple variables at the same time and turn them into long format
1 | gather_multiple(data, key_vars, varying = NULL, search = "\\d$")
|
data |
The data frame that contains the variables |
key_vars |
The key or id variables that should be the grouping variables in the long format |
varying |
The variables that are varying and should be returned in a long format. If NULL, all other variables except |
search |
The search string that is used to detect item-stems |
A data frame in long format, with the key_vars
as grouping variables and the varying
item-stems as stacked variables.
1 | gather_multiple(wide_example_data, key_vars = c("id", "id2"), varying = NULL)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.