rows_l {lenses}R Documentation

Row lens

Description

Create a lens into a set of rows

Usage

rows_l(rows, drop = FALSE)

Arguments

rows

the rows to focus on

drop

whether or not to drop dimensions with length 1

Examples

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))

[Package lenses version 0.0.3 Index]