get type of each variable: numeric or categorical
getTypeX(X)
X
A vector indicating each variable's type: numeric: 1; categorical: 2