Last active
February 2, 2016 00:11
-
-
Save sriyoda/47dd6d8e7108792c3e40 to your computer and use it in GitHub Desktop.
BoxOfficeMojo dataset cleansing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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