powered by
Calculates the total number of correct, incorrect, and missing answers for each student (row).
student_counts(sc)
A tibble with columns Dogru, Yanlis, and Bos.
Dogru
Yanlis
Bos
A data.frame of scored items (0=wrong, 1=correct, NA=missing).
score_df <- data.frame(m1 = c(1, 0, 1), m2 = c(0, 1, NA), m3 = c(1, 1, 1)) student_counts(score_df)
Run the code above in your browser using DataLab