<iframe src="https://exploratory.io/viz/Hidetaka-Ko/ac88ad801e7d?embed=true" frameborder="0" width="100%" height="100%" > </iframe>
# Set libPaths.
.libPaths("/Users/HidetakaKo/.exploratory/R/3.3")
# Load required packages.
library(lubridate)
library(tidyr)
library(urltools)
library(stringr)
library(broom)
library(RcppRoll)
library(tibble)
library(dplyr)
library(exploratory)
# Data Analysis Steps
readRDS("/Users/HidetakaKo/Desktop/question_tags_select_4.rds") %>%
exploratory::clean_data_frame() %>%
mutate(CreationDate = as.Date(CreationDate)) %>%
mutate(ClosedDate = as.Date(ClosedDate)) %>%
mutate(DeletionDate = as.Date(DeletionDate)) %>%
mutate(Tag = str_clean(Tag)) %>%
mutate(Tag = str_to_title(Tag)) %>%
mutate(Tag = str_trim(Tag)) %>%
filter(Tag == "Javascript" | Tag == "Python" | Tag == "Java" | Tag == "Ruby" | Tag == "Php" | Tag == "C++" | Tag == "C#") %>%
mutate(CreationDate_wday = wday(CreationDate, label = TRUE)) %>%
mutate(Weekend = if_else(CreationDate_wday %in% c("Sun","Sat"),"Weekend","Weekday")) %>%
group_by(Tag, Weekend, AnswerCount) %>%
summarize(Tag_n = n())
Many people don't want to think about computer programing in weekends… lol