clean_text: Add speaker categorical variable

Description Usage Arguments Value

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 May 14, 2019, 7:54 a.m.