The lens equivalent of attributes and attributes<-

attributes_l

Format

An object of class lens of length 2.

Examples

(x <- structure(1:10, important = "attribute"))
#> [1] 1 2 3 4 5 6 7 8 9 10 #> attr(,"important") #> [1] "attribute"
view(x, attributes_l)
#> $important #> [1] "attribute" #>
set(x, attributes_l, list(important = "feature"))
#> [1] 1 2 3 4 5 6 7 8 9 10 #> attr(,"important") #> [1] "feature"