Skip to content

Instantly share code, notes, and snippets.

@sriyoda
Last active February 2, 2016 00:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sriyoda/47dd6d8e7108792c3e40 to your computer and use it in GitHub Desktop.
Save sriyoda/47dd6d8e7108792c3e40 to your computer and use it in GitHub Desktop.
BoxOfficeMojo dataset cleansing
# title cleaning (remove * character)
d$title <- gsub("[*]", "", d$title)
# truncating Year
d$year <- str_sub(d$year, -5,-1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment