routineness_metric: Computes a metric of routineness based on frequency of ngrams

Description Usage Arguments Value

View source: R/ThreadNet_Metrics.R

Description

Computes the fraction of observed behavior that conforms to an observed pattern. Current version uses ngrams, but it would be good to use spmf pattern mining to avoid including duplicate patterns (e.g., a-b-c and b-c-d)

Usage

1
routineness_metric(o, TN, CF, n, m)

Arguments

o

data frame with occurresnces or events

TN

name of column with threadNumbers

CF

name of column with contextual factor

n

size of ngram

m

how many of the most frequent ngrams to include. When m > 1, there is a risk of duplication.

Value

number, index of routineness.


ThreadNet/ThreadNet documentation built on July 26, 2019, 8:16 p.m.