Last active
February 5, 2017 03:44
-
-
Save Tingting-Chang/5e252326d1ecae89cc7decc8f298641c to your computer and use it in GitHub Desktop.
Yelp shiny app ui.R file
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
hipster <- dataset %>% | |
filter(attributes.Ambience.hipster == TRUE) %>% | |
group_by(categories) %>% | |
summarise(total = sum(attributes.Ambience.hipster), stars = mean(stars)) %>% | |
arrange(desc(total)) | |
noise <- dataset %>% | |
mutate(noisy = ifelse(attributes.Noise.Level =='loud' | | |
attributes.Noise.Level== 'very_loud', T, F)) %>% | |
filter(noisy == TRUE) %>% | |
group_by(categories) %>% | |
summarise(total = sum(noisy), stars = mean(stars)) %>% | |
arrange(desc(total)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment