R/PreprocessTweets.R

Defines functions PreprocessTweets

PreprocessTweets <-
function(df) {
  # Perform a few preprocessing tasks

  # removing odd characters
  df.new <- RemoveOddChars(df)
  # extract user info and add to df
  df.new <- ExtractUserInfo(df.new)
  # extract urls and add to df
  df.new <- ExtractUrls(df.new)

  return(df.new)
}

Try the SocialMediaLab package in your browser

Any scripts or data that you put into this service are public.

SocialMediaLab documentation built on May 29, 2017, 9:41 p.m.