Learn R Programming

yamlet (version 0.6.5)

classified.data.frame: Classify Data Frame

Description

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

Usage

# S3 method for 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(), c.classified(), classified.default(), classified(), unclassified.classified(), unclassified.data.frame(), unclassified()

Other interface: 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.default(), read_yamlet(), resolve.decorated(), selected.default(), write_yamlet()

Examples

Run this code
# NOT RUN {
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)
# }

Run the code above in your browser using DataLab