use as.factor condition vector