The lens version of colnames and colnames<-

colnames_l

Format

An object of class lens of length 2.

Examples

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