no_adherence: Return Dates of No Adherence

Description Usage Arguments Value

View source: R/no_adherence.R

Description

This function returns the days without adherence to the data collection regimen for any potential missingness analysis. This is important in case there are high levels of missingness in the collected data, which could be correlated with certain covariates.

Usage

1
2
no_adherence(datetime_vector, workdays = "MonThruFri", start_date = NULL,
  end_date = NULL)

Arguments

datetime_vector

The vector of date or datetime values corresponding to observation dates. This will likely be a column in the data frame parsed from Google Sheets.

workdays

Either the default supported string or a vector of days considered for adherence. See the examples for alternative uses.

start_date

optional, a POSIX date representing an alternative start date

end_date

optional, a POSIX date representing an alternative end date

Value

The returned object will be a Date vector representing all workdays not represented in the input vector. If no days were missed, this vector will have length 0.


jmiahjones/lunch.time documentation built on Dec. 14, 2017, 12:53 p.m.