Skip to content

Instantly share code, notes, and snippets.

@vladholubiev
Created December 29, 2015 13:21
Show Gist options
  • Select an option

  • Save vladholubiev/58e9469f379c0078e3ce to your computer and use it in GitHub Desktop.

Select an option

Save vladholubiev/58e9469f379c0078e3ce to your computer and use it in GitHub Desktop.
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}$", "", .)
)
@vladholubiev
Copy link
Author

plot_id250183569-compressor

@vladholubiev
Copy link
Author

plot_id465848501-compressor

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