- acc
A numeric vector. A minute-level activity counts data vector.
It is assumed
to be in midnight-to-midnight format, meaning its vector length
is a multiple of number of minutes in a full day
(1440). See arctools::midnight_to_midnight()
.
- acc_ts
A POSIXct vector. Time of activity data collection, corresponding to
acc
in its original format (not: midnight-to-midnight).
We strongly recommended to use lubridate::ymd_hms()
function to
create acc_ts
(see Examples below).
- wear_flag
An integer vector. It has value 1
if a minute
belongs to a wear time-interval, value 0
if a minute
belongs to a non-wear time-interval, and value NA
to denote minutes
before/after data collection started/finished.
See arctools::get_wear_flag()
.
- valid_day_flag
An integer vector. It has value 1
if a minute
belongs to a valid day, and 0
otherwise. See
arctools::get_valid_day_flag()
.
- sedentary_thresh
A numeric scalar. If an activity count value falls
below it then a corresponding minute is characterized as sedentary; otherwise,
a corresponding minute is characterized as active. Default is 1853
.
- subset_minutes
Integer vector. Contains subset of a day's minutes
within which activity summaries are to be computed. May take values from
1
(day's minute from 00:00 to 00:01) to
1440
(day's minute from 23:59 to 00:00). Default is NULL
, i.e.
no subset used (all day's minutes are used).
- exclude_minutes
Integer vector. Contains subset of a day's minutes
to be excluded from activity summaries computation.
May take values from
1
(day's minute from 00:00 to 00:01) to
1440
(day's minute from 23:59 to 00:00). Default is NULL
, i.e.
no minutes excluded (all day's minutes are used).
- subset_weekdays
Integer vector. Specfies days of a week within which
activity summaries are to be computed. Takes values between 1 (Sunday) to
7 (Saturday). Default is NULL
, i.e.no subset used
(all days of a week are used).
- in_bed_time
A POSIXct vector. An estimated in-bed time start.
Together with a corresponding entry from out_bed_time
vector,
it defines a
day-specific subset of "in bed time" minutes to be excluded from
activity summaries computation. Default is NULL
, i.e.
no minutes excluded.
- out_bed_time
A POSIXct vector. An estimated in-bed time end.
Together with a corresponding entry from in_bed_time
vector,
it defines a
day-specific subset of "in bed time" minutes to be excluded from
activity summaries computation. Default is NULL
, i.e.
no minutes excluded.
- adjust_out_colnames
A logical scalar. Whether or not to
add an informative suffix to column names in the output data frame.
This may happen in case
any of the arguments:
subset_minutes
, or
exclude_minutes
, or
in_bed_time
and out_bed_time
are set other than NULL
.
Default is TRUE
.