timelist_to_difference: timelist_to_difference function

Description Usage Arguments Details Value See Also Examples

View source: R/activity.R

Description

This function converts a vector of timestamps (POSIXct/lt) into a collection of all the differences between each timestamp with each other. The idea is to head towards a frequency distribution of the time series, but rather than using a signal it is using a sequences of events or impulses.

Usage

1

Arguments

timestamps

a vector of POSIXct

Details

The other arguments are passed to the data.frame function and need to be of the form: var = "value", as you might want to pass through an identifier such as a student id or content id with the table of differences for later use

Value

dataframe, with first column called 'intervals'

See Also

Other timelist: timelist_to_difference_assembler

Examples

1
2
testTimes <- as.POSIXlt.POSIXct(sample(10000000:11100000 , 1000, replace = FALSE))
timelist_to_difference(testTimes)

benwhicks/lakit documentation built on Sept. 28, 2019, 4:27 p.m.