dimnames_l {lenses}R Documentation

Dimnames lens

Description

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

Usage

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

[Package lenses version 0.0.3 Index]