Gather columns to variable
1 | gather_cols(df, regex, newname, varname)
|
df |
Data frame to be processed |
regex |
Regex to match columns to be gathered |
newname |
New name for colnames to be gatherd |
varname |
New name for values to be gatherd |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.