Learn R Programming

lenses (version 0.0.3)

attributes_l: Attributes lens

Description

The lens equivalent of attributes and attributes<-

Usage

attributes_l

Arguments

Format

An object of class lens of length 2.

Examples

Run this code
# NOT RUN {
(x <- structure(1:10, important = "attribute"))
view(x, attributes_l)
set(x, attributes_l, list(important = "feature"))
# }

Run the code above in your browser using DataLab