ToTimedSequence: Sequence creating function, taking care of time

Description Usage Arguments Examples

Description

This function is not to be used directly, it is called by df2spmfBasket

Usage

1
2
ToTimedSequence(x, timeStep = timestep, timeUnit = timeUnit,
  timeFormat = timeFormat)

Arguments

x

a dataframe which must contains variable ID, itemset, eventNum and time

timeStep

if time is taken into account in the building of the sequence, this parameter allows to perform an integer division. For instance, if your time is in days but you wish to perform a time constrained sequence mining grouping relying on weeks, timeStep will be 7.

timeUnit

this parameter will be used in future versions

timeFormat

this parameter is inherited from the df2SPMFSequence function

Examples

1
 ToSequenceBasket()

MGousseff/r2spmf documentation built on May 26, 2019, 11:58 p.m.