A lens into the dimnames of an object. Lens equivalent of dimnames and dimnames<-.
dimnames_l
An object of class lens
of length 2.
x <- matrix(1:4, ncol = 2) colnames(x) <- c("first", "second") x#> first second #> [1,] 1 3 #> [2,] 2 4#> [[1]] #> NULL #> #> [[2]] #> [1] "first" "second" #>#> premiere deuxieme #> [1,] 1 3 #> [2,] 2 4