Learn R Programming

yamlet (version 0.5.3)

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()

Examples

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

Run the code above in your browser using DataLab