gather.decorated | R Documentation |
Gathers a decorated data.frame.
I.e. a gather method for class 'decorated'.
Invokes tidyr::gather(), converting gathered
labels to the guide attribute of key
, and
converting gathered guides ... if all the same ...
to the guide attribute of value
.
Somewhat experimental!
## S3 method for class 'decorated'
gather(
data,
key = "key",
value = "value",
...,
na.rm = FALSE,
convert = FALSE,
factor_key = FALSE
)
data |
see |
key |
see |
value |
see |
... |
see |
na.rm |
see |
convert |
see |
factor_key |
see |
decorated
library(magrittr)
library(tidyr)
file <- system.file(package = 'yamlet', 'extdata','quinidine.csv')
x <- decorate(file)
x %>% gather('key', 'value', time, interval) %>% decorations
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.