Skip to contents

This function unites specified text columns in a data frame into a single column named "united_texts" while retaining the original columns.

Usage

unite_text_cols(df, listed_vars)

Arguments

df

A data frame that contains text data.

listed_vars

A character vector of column names to be united into "united_texts".

Value

A data frame with a new column "united_texts" created by uniting the specified variables.

Examples

if (interactive()) {
  df <- TextAnalysisR::SpecialEduTech
  united_tbl <- TextAnalysisR::unite_text_cols(df, listed_vars = c("title", "keyword", "abstract"))
  united_tbl
}