The numerical values will be converted to factor variables and the labels will be {-1,0,1,2}. The -1 label will not be a problem.
You will not get a reference value for the "0" category unless you create the factor variable first with var <- factor(x, levels=c("0", "1", "2", "-1")
. (I'm not sure that it would be meaningful to be talking about a reference level in this situation, but worried that you thought the would be a special significance for the "0"-level.)