hoo.ena.accumulate.data: Create rENA Accumulated Model based on Horizon of Observation...

Description Usage Arguments Value Examples

View source: R/hoo.ena.accumulate.data.R

Description

For multimodal data, this function creates the correct rENA accumulated model that can be used to create rENA sets for analysis.

Usage

1
2
3
hoo.ena.accumulate.data(data, Units, Conversation, Codes, dataModeCol,
  modeObserve, usersCol, windowSize, useDT = FALSE,
  referenceMode = unique(data[[dataModeCol]]), ...)

Arguments

data

Multimodal data.frame or data.table

Units

A vector of Strings describing the Units for ENA model

Conversation

A vector of Strings describing the Conversations took place in ENA model

Codes

A vector of Strings entailing the big C Codes of interest for ENA analysis

dataModeCol

Name of the column where the types of multimodal data is stored

modeObserve

Modes of data where actions are observable to all players

usersCol

Name of the column entailing the unique user tracking info

windowSize

Size of the moving stanza window, for looking backwards (for whole conversation, input 1)

useDT

Boolean parameter on whether to call hoo.horizon.DT() instead of hoo.horizon(). Default to FALSE

referenceMode

Modes of data that the reference line should be (default to all modes of data as in no restriction on the reference line). Note: if referenceMode differs from its default value, then useDT will automatically be reverted to FALSE

...

Additional arguments to pass along to rENA ena.accumulate.data method

Value

an environment containing all relevant ENA accumulated model information to build ENA set upon

Examples

1
2
3
4
5
6
7
8
accum = hoo.ena.accumulate.data(data = mock,
                                Units = c("site", "userName"),
                                Conversation = c("site"),
                                Codes = c("Code1", "Code2", "Code3", "Code4"),
                                dataModeCol = "data",
                                modeObserve = "chat",
                                usersCol = "userName",
                                windowSize = 4)

scaotravis/hoo documentation built on July 5, 2020, 4:42 p.m.