Hi @DavoWW,
actually they are the same size:
> table(sport_1_4$variable)
sport_t1 sport_t2 sport_t3 sport_t4
38 0 0 38
but when I run your recommendation:
> length(sport_1_4$variable[as.numeric(sport_1_4$variable) == 1])
[1] 38
> length(sport_1_4$variable[as.numeric(sport_1_4$variable) == 2])
[1] 0
The last part is the problem, that's different from my first dataset sport_1_2.
The Question is why the don't have the same length, even though they have.
sport_1_2 and sport_1_4 really are they same except the different values for the variable sport_t4 in sport_1_4.