find_index: Find index of data that satisfies certain conditions

View source: R/utils-find-index.R

find_indexR Documentation

Find index of data that satisfies certain conditions

Description

Find index of data that satisfies certain conditions

Usage

find_index(data, dayvar, beepvar)

Arguments

data

A data frame.

dayvar

String indicating assessment day. Adding this argument makes sure that the first measurement of a day is not regressed on the last measurement of the previous day. IMPORTANT: only add this if the data has multiple observations per day.

beepvar

Optional string indicating assessment beep per day. Adding this argument will cause non-consecutive beeps to be treated as missing!

Value

A list of two vectors of indices.


quadVAR documentation built on April 4, 2025, 2:02 a.m.