| create_cooc_matrix | R Documentation |
Given a training order (list of words and objects per trial), this function returns a matrix tallying word-object co-occurrences across the trials. This matrix can be used to analyze the frequency with which certain words and objects appear together during the training phase.
create_cooc_matrix(train)
train |
A list representing the training data, where each element is a
trial that includes both words and objects. The structure is expected to
have sub-elements |
A matrix where each element represents the count of co-occurrences between a word (rows) and an object (columns). The row and column names correspond to the unique words and objects found in the training data, respectively.
create_cooc_matrix(xsl_datasets[[1]]$train)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.