I have a column where is age and I need to specify whether the age is above or below some level. I also have 2 columns with factor values T or F (value.if.age.under.13 and value.if.age.over.13). My code is always running the else statement.
for (i in nrow(dclas)){
if (dclas[i,6]<13.0){
x = value.if.age.under.13
} else{
x = value.if.age.over.13
}
}