The lens version of rownames and rownames<-

rownames_l

Format

An object of class lens of length 2.

Examples

x <- matrix(1:4, ncol = 2) rownames(x) <- c("first", "second") x
#> [,1] [,2] #> first 1 3 #> second 2 4
view(x, rownames_l)
#> [1] "first" "second"
set(x, rownames_l, c("premiere", "deuxieme"))
#> [,1] [,2] #> premiere 1 3 #> deuxieme 2 4