How do i get the number of rows that matches my condition: value of column 1 is lower than value of column2 plus 1?
nrow(subset(dataset, column1 <= column2 + 1))
When i run this command i get the following warning:
Warning message: In Ops.factor(column2, 1) : ‘+’ not meaningful for factors
And when i Run:
nrow(subset(dataset, column1 <= column2))
I get:
Warning message: In Ops.factor(vg, (column2)) : ‘<=’ not meaningful for factors