rows_l: Row lens

Description Usage Arguments Examples

Description

Create a lens into a set of rows

Usage

1
rows_l(rows, drop = FALSE)

Arguments

rows

the rows to focus on

drop

whether or not to drop dimensions with length 1

Examples

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

view(x, rows_l(1))
view(x, rows_l("second"))
set(x, rows_l(1), c(20,40))

lenses documentation built on May 2, 2019, 8:51 a.m.