Learn R Programming

LOGAN (version 1.0.1)

TOTVar: Time on task variable

Description

This is a function that reports the number of students and a summary of time on task aggregated by a specific variable.

Usage

TOTVar(data, starttime.vec, endtime.vec, divBy = NA, tot.var)

Value

This function returns a data.frame with the number of students and number de actions (min-max) aggregated by a specific variable.

Arguments

data

A matrix or data.frame

starttime.vec

a vector with the individuals' identifications. It is a quo() type.

endtime.vec

a vector with the group variable. It is a quo() type.

divBy

a vector with the group variable. It is a quo() type.

tot.var

string containing the name of the output variable

Examples

Run this code
m1$TOTVar(cp025q01.treated, "CP025Q01.START", "CP025Q01.END",
  divBy = 60,
  tot.var = "CP025Q01.TOT"
)

Run the code above in your browser using DataLab