dimnames_l: Dimnames lens

Description Usage Format Examples

Description

A lens into the dimnames of an object. Lens equivalent of dimnames and dimnames<-.

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, dimnames_l)
set(x, dimnames_l, list(NULL, c("premiere", "deuxieme")))

cfhammill/fresnel documentation built on May 15, 2019, 1:13 p.m.