flag_valid_day: flag_valid_day

View source: R/flag_valid_day.R

flag_valid_dayR Documentation

flag_valid_day

Description

flag_valid_day

Usage

flag_valid_day(
  is_wear,
  is_adherent,
  steps,
  valid_day_method = c("valid_adherent_hours", "valid_step_count"),
  ...
)

Arguments

is_wear

a logic vector with entries for every minute in day. TRUE values correspond to those minutes in the day that are considered to be wear time.

is_adherent

a logic vector indicating minutes in a day that adhere to a study's inclusion criteria.

steps

a numeric vector containing Fitbit minute step recordings in a day.

valid_day_method

either "valid_adherent_hours" or "valid_step_count".

...

additional parameters that go into the selected valid_day_method.

Details

Flag valid days using either minimum adherent hours or minimum step count criteria.

Value

a single boolean indicating whether the valid day criteria is satisfied.


audiracmichelle/fitibble documentation built on Feb. 2, 2023, 3:51 p.m.