update p3.R, adding confusionMatrix for error rate info