powered by
Lens into a named attribute of an object.
attr_l(name)
A lens that selects the specified attribute
Name of the attribute to lens into
x <- 1:10 attr(x, "label") <- "my_label" l <- attr_l("label") view(x, l) set(x, l, "new_label")
Run the code above in your browser using DataLab