Returns a logical vector the length of the input data points. This checks if each point falls between a start and end time. This is designed to work with a timetable and participant basis file.

  • timetable contains a list of start and end times for different periods of the day, for different groups of people (e.g., classrooms).

  • participant basis contains a list of identifiers and group membership.

palms_in_time(data, identifier, timetable, basis, start_col, end_col)

Arguments

data

The data points.

identifier

The participant identifier.

timetable

The timetable table.

basis

The participant basis table.

start_col

The column in timetable containing the start time.

end_col

The column in timetable containing the end time.

Value

A logical vector the length of the input data points.

Examples

data(list = c("palms", "participant_basis", "class_timetable")) in_school <- palms_in_time(palms, "BC0627", class_timetable, participant_basis, school_start, school_end)