Learn R Programming

lenses (version 0.0.3)

rownames_l: A lens into the row names of an object

Description

The lens version of rownames and rownames<-

Usage

rownames_l

Arguments

Format

An object of class lens of length 2.

Examples

Run this code
# NOT RUN {
x <- matrix(1:4, ncol = 2)
rownames(x) <- c("first", "second")
x

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

Run the code above in your browser using DataLab