classified.data.frame: Classify Data Frame

Description Usage Arguments Value See Also Examples

View source: R/classified.R

Description

Coerces items in data.frame with codelist attribute to 'classified': a factor with a codelist attribute.

Usage

1
2
## S3 method for class 'data.frame'
classified(x, ...)

Arguments

x

data.frame

...

passed to select to limit column scope

Value

data.frame

See Also

Other classified: [.classified(), [<-.classified(), [[.classified(), [[<-.classified(), as.integer.classified(), c.classified(), classified.default(), classified(), unclassified.classified(), unclassified.data.frame(), unclassified()

Other interface: as.data.frame.yamlet(), decorate.character(), decorate.data.frame(), desolve.decorated(), ggplot.decorated(), io_csv.character(), io_csv.data.frame(), io_res.character(), io_table.character(), io_table.data.frame(), io_yamlet.character(), io_yamlet.data.frame(), is_parseable.default(), mimic.default(), modify.default(), promote.list(), read_yamlet(), resolve.decorated(), selected.default(), write_yamlet()

Examples

1
2
3
4
5
6
library(magrittr)
file <- system.file(package = 'yamlet', 'extdata','quinidine.csv')
x <- decorate(file)
x %>% explicit_guide %>% decorations(Age, Race, Heart:glyco)
x %>% explicit_guide %>% classified %>% decorations(Age, Race, Heart:glyco)
x %>% explicit_guide %>% classified(Heart:glyco) %>% decorations(Age, Race, Heart:glyco)

yamlet documentation built on July 19, 2021, 1:06 a.m.