iter.ref: Convert Reference to Iterable Object

Description Usage Arguments Value Examples

View source: R/match.R

Description

ref methods for use with iter in the eList package. It allows ref objects to be used with the different vector comprehensions in the package and with functions such as lapply in base R.

Usage

1
2
3
4
5
6
7
8
## S3 method for class 'ref'
iter(x)

## S3 method for class 'slice'
iter(x)

## S3 method for class 'rfexpr'
iter(x)

Arguments

x

object to be looped across

Value

a vector

Examples

1
2
3
4
x <- sample(1:10, 5, replace=TRUE)
slice_x <- slice(x, 1:2)

lapply(eList::iter(slice_x), print)

refer documentation built on Nov. 8, 2021, 5:08 p.m.