Created
December 29, 2015 13:21
-
-
Save vladholubiev/58e9469f379c0078e3ce to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| require(dplyr) | |
| require(data.table) | |
| questions <- tbl_df(fread(input = "questions.csv", header = TRUE, sep = ",")) %>% | |
| mutate(Score = as.integer(Score)) %>% | |
| mutate(ViewCount = as.integer(ViewCount)) %>% | |
| mutate(CreationDate = as.Date(CreationDate)) %>% | |
| mutate(Tags = Tags %>% | |
| gsub("<", "", .) %>% | |
| gsub(">", ",", .) %>% | |
| gsub(".{1}$", "", .) | |
| ) |
Author
vladholubiev
commented
Dec 29, 2015

Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment