Learn R Programming

zoomGroupStats (version 0.1.0)

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

Examples

Run this code
# NOT RUN {
win.out = makeTimeWindows(sample_transcript_processed, 
timeVar="utteranceStartSeconds", windowSize=10)
# }

Run the code above in your browser using DataLab