Learn R Programming

tinylens (version 0.1.0)

names_l: Names lens

Description

Lens into the names attribute of an object. This uses rlang::names2 to better handle NULL names.

Usage

names_l

Arguments

Format

An object of class tinylens::lens (inherits from S7_object) of length 1.

Examples

Run this code
x <- letters[1:10]
names(x) <- letters[1:10]
view(x, names_l)
over(x, names_l, toupper)

Run the code above in your browser using DataLab