Changelog
Source:NEWS.md
actibase 0.8.0
CRAN release: 2026-10-21
- New
acti_standardize_epoch()(andacti_standardise_epoch()) converts an epoch given as a number, a string ("1 min","30s","1 hr"), aDuration/Period, or adifftimeinto a number of seconds/minutes/ hours/days or afloor_date()/seq()-ready string. - actibase now requires lubridate (>= 1.9.0), the first version whose
floor_date()supports the absolute units ("90 aseconds") thatacti_standardize_epoch()can return. - The internal
tzoffset_to_tz()now uses the correct invertedEtc/GMTsign convention ("-05:00"is"Etc/GMT+5"), matching actiread. -
acti_flag_interval_jump()now defaults toverbose = TRUE. -
flag_qc_all()is kept as an alias ofacti_flag_qc_all()so that packages using the old name keep working; it will be deprecated later. -
acti_fill_zeros()gainsmethod = "actilife", which fills only all-zero runs at least one second (sample_raterows) long, as in idle sleep, and keeps shorter runs (e.g. a single recorded(0, 0, 0)sample) as ActiLife does. The defaultmethod = "all"is unchanged. -
get_sample_rate()now uses a message, not a warning, when it guesses the sample rate from the timestamps.
actibase 0.7.2
- Add
acti_flag_cdc_labels()to map existing logical QC columns to CDC-style NHANES PAM letter codes. - Document the CDC NHANES PAM flag mapping in the README and a package vignette, including known differences from CDC output.
- Standardize accelerometer axis columns named
X/Y/Z,x/y/z,acc_X/acc_xvariants, oracceleration_X/acceleration_xvariants. - Fail when upper- and lowercase versions of the same axis are both present. Warn once and prefer
X/Y/Zwhen a complete canonical triplet and a completeacc_*oracceleration_*triplet are present. - Add clearer names for adjacent device-limit sample flags and axis-specific contiguous device-limit runs; retain the former names as compatibility wrappers.
actibase 0.7.1
- Preserve missing values while applying minimum run lengths to logical QC flags.
- Return an empty data frame when all rows are removed by leading-zero trimming.
- Reject HMS times outside a single day instead of wrapping them to another minute.
- Return a typed empty data frame when splitting an empty set of intervals.
- Make the flag helpers configurable for different devices and sample rates. Sample rate defaults to
NULLand is resolved throughget_sample_rate()when continuity checks need it. - Add general helpers for device-limit counts in caller-defined windows, contiguous device-limit runs, adjacent invalid periods, and repeated samples. CDC threshold values are used only in regression tests.
- Respect the minimum run length when an entire logical vector is
TRUE. - Break contiguous sample runs at timestamp gaps using the resolved sample rate.
- Add optional per-axis spike indicators and implement time-window spike counts using local extrema, a large-change threshold, and a caller-specified count.
- Return axis-specific interval-jump indicators and process raw samples in bounded window chunks to limit temporary memory use.
- Set the default minimum run for impossible-gravity flags to seven samples, use the device dynamic range to exclude clipped readings, and require the range from an argument or data metadata.
- Prefix flagging functions with
acti_and standardize their input argument todata; usemin_countandwindow_secondsfor window-count and duration arguments.
actibase 0.7.0
- Fix for
create_day_inclusion– number of observed minutes was wrong. - Added transformations for
add_day_inclusionandmin_requiredas attribute forcreate_day_inclusion. -
Roxygen: list(markdown = TRUE)added to the DESCRIPTION.
actibase 0.6.0
CRAN release: 2026-09-17
- New helpers for time:
acti_day_indexacti_day_startacti_split_intervals_at_midnightacti_repeat_time_of_dayacti_time_of_dayacti_minute_to_hmsacti_hms_to_minuteacti_time_to_minute.