This function acts as a wrapper to identify the sliding window size that yields the highest (peak) ground diversity/entropy for a given dataset.
Arguments
- data
A data.frame or data.table containing the conversation data.
- codeNames
A character vector of column names representing the binary codes.
- conversation_cols
A character vector of column names that define unique conversations.
- max_window
An integer specifying the maximum window size to evaluate. Default is 20.
Examples
if (FALSE) { # \dontrun{
peak_w <- ena.gd.window(data = my_data,
codeNames = c("CodeA", "CodeB"),
conversation_cols = "ConversationID",
max_window = 15)
} # }
