Convenience function that takes a data frame and applies
gather
to columns ending in '(number)', which is how
loop and merge data is outputted. By default, it returns key-value results as
.loop and .dat
1 2 | q_tidyloops(data, key_col = ".loop", value_col = ".dat",
pattern = "\\([0-9]+\\)$")
|
data |
A data frame |
key_col |
Strings giving names of key and value columns to create. |
pattern |
character string containing a regular expression
(or character string for |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.