Modified so that characters vectors and integer vectors are now treated properly by checkFactor and checkNumeric