Ik kan dit vreemd genoeg niet repliceren. Als ik bijvoorbeeld een van de standaard dataframes gebruik, en ik voer dit in in R:
by(mtcars$am, mtcars$cyl, freq);
Dan krijg ik:
mtcars$cyl: 4
Frequencies Perc.Total Perc.Valid Cumulative
0 3 27.3 27.3 27.3
1 8 72.7 72.7 100.0
Total valid 11 100.0 100.0
-----------------------------------------------------
mtcars$cyl: 6
Frequencies Perc.Total Perc.Valid Cumulative
0 4 57.1 57.1 57.1
1 3 42.9 42.9 100.0
Total valid 7 100.0 100.0
-----------------------------------------------------
mtcars$cyl: 8
Frequencies Perc.Total Perc.Valid Cumulative
0 12 85.7 85.7 85.7
1 2 14.3 14.3 100.0
Total valid 14 100.0 100.0
Andersom werkt het ook:
> by(mtcars$cyl, mtcars$am, freq)
mtcars$am: 0
Frequencies Perc.Total Perc.Valid Cumulative
4 3 15.8 15.8 15.8
6 4 21.1 21.1 36.8
8 12 63.2 63.2 100.0
Total valid 19 100.0 100.0
-----------------------------------------------------
mtcars$am: 1
Frequencies Perc.Total Perc.Valid Cumulative
4 8 61.5 61.5 61.5
6 3 23.1 23.1 84.6
8 2 15.4 15.4 100.0
Total valid 13 100.0 100.0
Welke foutmelding krijg je precies?