is_iterative_list: Iterative List Check

Description Usage Arguments Value Examples

View source: R/is_iterative_list.R

Description

An iterative list is one which is generated from an lapply loop. The elements of l does not need to be named. The elements of l should be named objects. Each element within l should be an object with the same names. No element in l should be null, but it is ok if an element of l contains a null object (as long as it is named).

Usage

1

Arguments

l

a list

Value

logical

Examples

1
2
x <- purrr::rerun(5, x = list(a = runif(1), b = rnorm(15)), y1 = runif(12), i = if(sample(c(TRUE, FALSE), 1)) head(iris) else NULL)
is_iterative_list(x)

jennguyen1/jn.general documentation built on March 20, 2018, 4:26 a.m.