View source: R/stackingutilities.R
StackTextAndCategorization | R Documentation |
Stacks several text variables and an existing categorization in a consisten manner for text analysis functions.
StackTextAndCategorization(
text,
existing.categorization = NULL,
subset = TRUE,
weights = NULL
)
text |
A data frame containing one or more character vectors. Typically these start their life as variables in a Text - Multi variable set in Displayr or are several related Text variable sets. |
existing.categorization |
A data frame containing the corresponding categories. This could be a data frame of factor variables (a single-response categorization), or a data frame of binary numeric variables (a multiple-response categorization). This can be NULL if no existing categorization is to be used in the analysis. |
subset |
A boolean vector indicating the subset of cases that the user wishes to include later in a classification of the text. Usually comes from QFilter. This will be expanded to align with the stacked data. |
weights |
A numeric vector of case weights for later us in the analysis. This will be expanded to align with the stacked data. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.