preprocess_data: Preprocess_data

Description Usage Arguments Value

View source: R/preprocess_data.R

Description

Perform pre-processing tasks on the text data including removing punctuation and stopwords. This function also produces a long styled data set in preparation for exploratory data analysis.

Usage

1
2
3
4
5
preprocess_data(
labelled_raw,
unlabelled_raw,
topics,
text_vars)

Arguments

labelled_raw

A dataframe that details whether the comment belongs to a topic using a binary 0 or 1.

unlabelled_raw

An unlabelled dataframe that will be used for predictions.

topics

A list containing each topic.

text_vars

A list containing each text variable to be processed.

Value

A pre-processed labelled dataframe, unlabelled dataframe, and long labelled dataframe.


rosepeglershare/TagR documentation built on Dec. 31, 2020, 3:12 a.m.