replyr_testCols: Run test on columns.

Description Usage Arguments Value Examples

Description

Applies user function to head of each column. Good for determing things such as column class.

Usage

1
replyr_testCols(x, f, n = 6L)

Arguments

x

tbl or item that can be coerced into such.

f

test function (returning logical, not depending on data length).

n

number of rows to use in calculation.

Value

logical vector of results.

Examples

1
2
d <- data.frame(x=c(1,2),y=c('a','b'))
replyr_testCols(d,is.numeric)

replyr documentation built on Nov. 1, 2019, 7:49 p.m.