index_l: Construct a lens into an index/name

Description Usage Arguments Functions Examples

Description

This is the lens version of [[

Usage

1
2
3

Arguments

el

The element the lens should point to can be an integer or name.

Functions

Examples

1
2
3
4
x <- 1:10
view(x, index_l(1))
set(x, index(5), 50)
head(view(iris, index(2)))

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