Learn R Programming

yamlet (version 0.4.8)

as_classified.factor: Coerce Factor to Classified

Description

Coerce factor to classified. Creates a factor that retains attributes during subsetting.

Usage

# S3 method for factor
as_classified(x, ...)

Arguments

x

factor

...

ignored arguments

Value

class 'classified' 'factor'

See Also

Other classified: [.classified(), as_classified()

Other interface: conditionalize.data.frame(), decorate.character(), decorate.data.frame(), ggplot.decorated(), ggready.data.frame(), io_csv.character(), io_csv.data.frame(), io_table.character(), io_table.data.frame(), io_yamlet.character(), io_yamlet.data.frame(), is_parseable.default(), read_yamlet(), resolve.data.frame(), write_yamlet()

Examples

Run this code
# NOT RUN {
class(as_classified(factor(letters)))
# }

Run the code above in your browser using DataLab