calc_user_state_for_users: Calculate user state for a bunch of users.

Description Usage Arguments Value

Description

Goes over the events and slide_transitions to produce a timeline with one second intervals from startDate to endDate that holds 6 state indicators: hasExercise, connected, focus, idle, input and submitted.

Usage

1
calc_user_state_for_users(users, events, startDate, endDate, slide_transitions)

Arguments

users

date.frame Users from a lecture.

events

date.frame Events from single users during the lecture.

startDate

POSIXct Calculate state for timestamps since this date.

endDate

POSIXct Calculate state for timestamps up to this date.

slide_transitions

data.frame Contains slide transitions.

Value

A data.table with the concatenated timelinesof all the users.


triglian/asqr documentation built on May 31, 2019, 7:53 p.m.