Learn R Programming

yamlet (version 0.9.3)

redecorate: Redecorate a List-like Object

Description

Redecorates a list-like object. Equivalent to decorate( ..., overwrite = TRUE).

Usage

redecorate(x, ..., overwrite = TRUE)

Value

a list-like object, typically data.frame

Arguments

x

object

...

passed arguments

overwrite

passed to decorate

See Also

Other decorate: as_decorated.default(), as_decorated(), decorate.character(), decorate.data.frame(), decorate.list(), decorate(), decorations.data.frame(), decorations()

Examples

Run this code
library(dplyr)
library(magrittr)
library(csv)
file <- system.file(package = 'yamlet', 'extdata','quinidine.csv')
x <- decorate(as.csv(file))
x %>% select(Subject) %>% decorations
x %<>% redecorate('Subject: Patient Identifier')
x %>% select(Subject) %>% decorations

Run the code above in your browser using DataLab