df_search: Search recurssively to a data.frame

Description Usage Arguments See Also Examples

View source: R/utils_pkgtools.r

Description

This function is a helper designed to be used in tdrply. It searches recurssively in an object for a list of data.frames at a given level of depth. If the search ends to atomic vectors, the function builds a list of data.frames by taking their elements by two successively.

Usage

1
df_search(.idx)

Arguments

.idx

An object.

See Also

tdrply

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
.idx <- list(1:10, list(1:10))
# df_search(.idx) # error
.idx <- list(1:10, data.frame(1:10, 1:10))
# df_search(.idx) # error

.idx <- data.frame(1:10, 10:1)
df_search(.idx)
.idx <- list(a = .idx, b = .idx)
df_search(.idx)
.idx <- list(a = 1:3, b = 1:10)
df_search(.idx)

SESman/rbl documentation built on June 24, 2017, 8:48 a.m.