gather.decorated {yamlet} | R Documentation |
Gather a Decorated Data Frame
Description
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!
Usage
## S3 method for class 'decorated'
gather(
data,
key = "key",
value = "value",
...,
na.rm = FALSE,
convert = FALSE,
factor_key = FALSE
)
Arguments
data |
see |
key |
see |
value |
see |
... |
see |
na.rm |
see |
convert |
see |
factor_key |
see |
Value
decorated
Examples
library(magrittr)
library(tidyr)
file <- system.file(package = 'yamlet', 'extdata','quinidine.csv')
x <- decorate(file)
x %>% gather('key', 'value', time, interval) %>% decorations
[Package yamlet version 1.2.0 Index]