levels_l {lenses} | R Documentation |
Levels lens
Description
A lens into the levels of an object. Usually this is factor levels. Lens equivalent of levels and levels<-.
Usage
levels_l
Format
An object of class lens
of length 2.
Examples
x <- factor(c("a", "b"))
view(x, levels_l)
set(x, levels_l, c("A", "B"))
[Package lenses version 0.0.3 Index]