class(var1) [1] "numeric" class(var2) [1] "factor"