dot-validateInputs: Checks class of the list of variables. To be used in...

.validateInputsR Documentation

Checks class of the list of variables. To be used in functions

Description

Checks class of the list of variables. To be used in functions

Usage

.validateInputs(checkList)

Arguments

checkList

list of object to check, e.g. list(varname=c("data.frame", "numeric")). Multiuple strings in the vector are treated as OR.

Value

A warning if the wrong input class is provided.

Examples

x = function(var1) {
    cl = list(var1=c("numeric","character"))
    .validateInputs(cl)
    return(var1^2)
}

databio/GenomicDistributions documentation built on April 30, 2024, 4:34 a.m.