rownames_l: A lens into the row names of an object

Description Usage Format Examples

Description

The lens version of rownames and rownames<-

Usage

1

Format

An object of class lens of length 2.

Examples

1
2
3
4
5
6
x <- matrix(1:4, ncol = 2)
rownames(x) <- c("first", "second")
x

view(x, rownames_l)
set(x, rownames_l, c("premiere", "deuxieme"))

cfhammill/focal documentation built on May 23, 2019, 6:04 p.m.