getEventsToSlidingWindowsMapping: getEventsToSlidingWindowsMapping

View source: R/adherer.R

getEventsToSlidingWindowsMappingR Documentation

getEventsToSlidingWindowsMapping

Description

This function returns the event-to-sliding-window mapping, if this information exists.

Usage

getEventsToSlidingWindowsMapping(x)

Arguments

x

is an CMA_sliding_window object.

Details

There are cases where it is interesting to know which events belong to which sliding windows and which events have been actually used in computing the simple CMA for each sliding window This information can be returned by CMA_sliding_window() if the parameter return.mapping.events.episodes is set to TRUE.

Value

The mapping between events and episodes, if it exists as the mapping.windows.to.events component of the CMA_sliding_window object object, or NULL otherwise.


AdhereR documentation built on July 5, 2022, 5:08 p.m.