calc_user_state: Calculate the user state from user events.

Description Usage Arguments Details Value

Description

Given a date.frame timeline where each subsequent row corresponds to the next a second of a lecture and the events for a single user, it calculates the state of the user for each second of the lecture as 6 different indicators:

Usage

1
calc_user_state(timeline, user_events, from, to)

Arguments

timeline

date.frame Each row represents a second in the lecture.

user_events

date.frame Events from a single user during the lecture.

from

POSIXct pick user events that happend since the value of this variable.

to

POSIXct pick user events that happend up to the value of this variable.

Details

hasExercise, connected, visible, focus, idle, input and submitted.

Value

An updated timeline data.table with the user states.


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