TOTVar: Time on task variable

View source: R/TOTVar_m1.R

TOTVarR Documentation

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)

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

Value

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

Examples

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


LOGAN documentation built on Oct. 25, 2022, 9:08 a.m.

Related to TOTVar in LOGAN...