Learn R Programming

examly (version 0.2.0)

student_counts: Student-level counts (Correct/Incorrect/Missing)

Description

Calculates the total number of correct, incorrect, and missing answers for each student (row).

Usage

student_counts(sc)

Value

A tibble with columns Dogru, Yanlis, and Bos.

Arguments

sc

A data.frame of scored items (0=wrong, 1=correct, NA=missing).

Examples

Run this code
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