attr_l: Construct a lens into an attribute

Description Usage Arguments Examples

Description

The lens version of attr and attr<-

Usage

1
attr_l(attrib)

Arguments

attrib

A length one character vector indicating the attribute to lens into.

Examples

1
2
3
(x <- structure(1:10, important = "attribute"))
view(x, attr_l("important"))
set(x, attr_l("important"), "feature")

lenses documentation built on May 2, 2019, 8:51 a.m.