Import One-Hot Data
Usage
import_onehot(
data,
cols,
actor,
session,
window_size = 1L,
window_type = "tumbling",
aggregate = FALSE
)Arguments
- data
A
data.framein wide format.- cols
An
expressiongiving a tidy selection of columns to be considered as one-hot data.- actor
An optional
characterstring giving the column name ofdatacontaining the actor identifiers.- session
An optional
characterstring giving the column name ofdatacontaining the session identifiers.- window_size
An
integerspecifying the window size for grouping.- window_type
A
characterstring. Either"tumbling"(the default) for non-overlapping windows or"sliding"for one-step sliding window.- aggregate
A
logicalvalue that determines how multiple occurrences of the same event within a window are processed. OptionTRUEaggregates multiple occurrences into a single occurrence. OptionFALSEkeeps all occurrences (the default).
See also
Other data:
import_data(),
prepare_data(),
print.tna_data(),
simulate.group_tna(),
simulate.tna()
