clean_text: Add speaker categorical variable

Description Usage Arguments Value

View source: R/clean words.R

Description

Mutates variable "speaker." to either "jorn" or "pm". Also removes the sentences that are "JOURNALIST:" and "PRIME MINISTER:".

Removes numeric characters, stop words and white space from words...

Usage

1
2
3

Arguments

df

Takes df with sentence level text.

keep

Defaults to TRUE, if FALSE filters out "jorn"...

df

Takes df with

Value

Returns data frame

Returns data frame


trendlock/mal documentation built on July 20, 2017, 12:03 a.m.