colnames_l: A lens into the column names of an object

Description Usage Format Examples

Description

The lens version of colnames and colnames<-

Usage

1

Format

An object of class lens of length 2.

Examples

1
2
3
4
5
6
x <- matrix(1:4, ncol = 2)
colnames(x) <- c("first", "second")
x

view(x, colnames_l)
set(x, colnames_l, c("premiere", "deuxieme"))

cfhammill/focal documentation built on May 23, 2019, 6:04 p.m.