StackTextAndCategorization: Stacks several text variables and an existing categorization...

View source: R/stackingutilities.R

StackTextAndCategorizationR Documentation

Stacks several text variables and an existing categorization in a consisten manner for text analysis functions.

Description

Stacks several text variables and an existing categorization in a consisten manner for text analysis functions.

Usage

StackTextAndCategorization(
  text,
  existing.categorization = NULL,
  subset = TRUE,
  weights = NULL
)

Arguments

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.


Displayr/flipTransformations documentation built on Feb. 26, 2024, 12:47 a.m.