R/tableplot_checkDecreasing.R

Defines functions tableplot_checkDecreasing

tableplot_checkDecreasing <- function(decreasing, sortCol){
	if (!inherits(decreasing, "logical")) stop("<decreasing> is not a logical")
	if (length(decreasing)==1) {
		decreasing <- rep(decreasing, length(sortCol))
	} else if (length(decreasing) != length(sortCol)) stop("<sortCol> and <decreasing> have different lengths")
	decreasing
}
mtennekes/tabplot documentation built on March 8, 2021, 6:11 p.m.