colnames_l {lenses} | R Documentation |
A lens into the column names of an object
Description
The lens version of colnames
and colnames<-
Usage
colnames_l
Format
An object of class lens
of length 2.
Examples
x <- matrix(1:4, ncol = 2)
colnames(x) <- c("first", "second")
x
view(x, colnames_l)
set(x, colnames_l, c("premiere", "deuxieme"))
[Package lenses version 0.0.3 Index]