check: Apply a list of checks to a dataset at specified variables

Description Usage Arguments Details Value Note

Description

check_at and check_if apply lists predicates on lists of subsets of a data frame. They are suitable for programming and for data analysis pipelines.

Usage

1
2
3
check_at(data, .ats, .fs, individually = TRUE)

check_if(data, .ps, .fs, individually = TRUE)

Arguments

data

data frame

.ats

list. Each element of .ats can be a character vector of names or a numeric vector of positions. Only those elements corresponding to .at will be modified.

.fs

list. Each elemnt of .fs can be a single predicate function or a formula describing such a predicate function. Must return a scalar logical.

individually

scalar logical. If TRUE, each column in the subset is passed to .f. if FALSE, the entire subset dataframe is passed.

.ps

list. Each elemnt of .ps can be a single predicate function, a formula describing such a predicate function, or a logical vector of the same length as the number of cols of data. Only those elements where .p evaluates to TRUE will be checked

Details

details about form of checks

Value

list

Note

zip is a useful function for creating lists of checks and subsets.


biodatacore/biodatacoreMTM documentation built on May 12, 2019, 8:41 a.m.