Usage Arguments Value Examples
1 2 | skipped.analysis(records, students = NULL, lessons = DSR.lessons,
course.source = course.sources)
|
records |
The data.frame of the raw records. This should be the output of the function
|
students |
The user_id to be analyzed. If it is |
lessons |
The character vector of the courses to be analyzed. |
course.source |
named list. The name is the course name. The value is the root of the swirl course directory. |
data.frame with following columns:
course The course name.
question.no The number of the question
user_id The id of the student
skipped Whether the question is skipped or not
source.position integer. The index of which part of source found in course.source
Note that the students might do the question multiple times, so there might be multiple rows for the specific course, question.no and user_id. Each row represents each trials of the student at the specific course and question.
1 2 3 4 5 6 7 8 9 10 11 12 | ## Not run:
login("wush")
records <- get.records()
skipped.result <- skipped.analysis(records)
library(dplyr)
group_by(skipped.result, course, question.no, user_id) %>%
summarise(is.skipped = all(skipped)) %>% # if the student does not skip once, then I recognize that he/she did the question.
group_by(course, question.no) %>%
summarise(skip.ratio = mean(is.skipped)) %>%
arrange(desc(skip.ratio))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.