makeTimeWindows: Helper function that creates temporal windows in datasets
Description
This creates a set of temporal windows of specified size so that metrics
can be computed within those windows.
Usage
makeTimeWindows(inputData, timeVar, windowSize)
Arguments
inputData
data.frame that has data over time, usually within a single meeting
timeVar
name of a numeric column that contains the time variable you want to use
windowSize
numeric value giving the length of time window
Value
list with two data.frames:
windowedData - inputData with the temporal window identifying information included
allWindows - contains the full set of temporal windows and identifying information. This is valuable because inputData may not have records within all of the possible temporal windows