returns indices of columns with non-zero variance
noZeroVar(dat)
dat
data.frame or matrix
column indices of columns with non-zero variance