clean_tweets: Cleans the text in the tweets and returns as new columns in...

Description Usage Arguments Value

View source: R/clean_tweets.R

Description

Cleans the text in the tweets and returns as new columns in the dataframe. The cleaning process includes converting into lower case, removal of punctuation, hastags and hastag counts

Usage

1
clean_tweets(file_path, tokenization = TRUE, word_count = TRUE)

Arguments

file_path

character File path to csv file containing tweets data

tokenization

logical Creates new column containing cleaned tweet word tokens when True Default is True

word_count

logical Creates new column containing word count of cleaned tweets Default is True

Value

df_tweets Dataframe Dataframe containing data on cleaned tweets .


UBC-MDS/rtweetlytics documentation built on Feb. 6, 2022, 12:33 a.m.