set: Modify data with a lens

Description Usage Arguments

View source: R/verbs.R

Description

Set the subcomponent of the data referred to by a lens with a new value. See lens for details. Merely dispatches to the set component of the lens.

Usage

1
set(d, l, x)

Arguments

d

the data, or an oscope

l

the lens, or in the case of an oscope, the replacement

x

the replacement value, or nothing in the case of an oscope


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