.validateInputs {GenomicDistributions} | R Documentation |
Checks class of the list of variables. To be used in functions
.validateInputs(checkList)
checkList |
list of object to check, e.g. list(varname=c("data.frame", "numeric")). Multiuple strings in the vector are treated as OR. |
A warning if the wrong input class is provided.
x <- function(var1) { cl = list(var1=c("numeric","character")) .validateInputs(cl) return(var1^2) }