hw2
library(“tidyverse”) library(“dplyr”)
library(readxl) MBTA_bus_all2 <- read_excel(“MBTA_bus_all2.xlsx”) View(MBTA_bus_all2)
rdm_all <- filter(MBTA_bus_all2, route_name > 13 & route_name < 31) view(rdm_all)
popular_stops_rdm <- arrange(rdm_all, desc(average_ons)) view(popular_stops_rdm)
This is an R Markdown document. Markdown is a simple formatting syntax for authoring HTML, PDF, and MS Word documents. For more details on using R Markdown see http://rmarkdown.rstudio.com.
When you click the Knit button a document will be generated that includes both content as well as the output of any embedded R code chunks within the document. You can embed an R code chunk like this:
summary(cars)
speed dist
Min. : 4.0 Min. : 2.00
1st Qu.:12.0 1st Qu.: 26.00
Median :15.0 Median : 36.00
Mean :15.4 Mean : 42.98
3rd Qu.:19.0 3rd Qu.: 56.00
Max. :25.0 Max. :120.00
You can also embed plots, for example:
Note that the echo = FALSE
parameter was added to the code chunk to prevent printing of the R code that generated the plot.
Text and figures are licensed under Creative Commons Attribution CC BY-NC 4.0. The figures that have been reused from other sources don't fall under this license and can be recognized by a note in their caption: "Figure from ...".
For attribution, please cite this work as
Mulvey (2022, Feb. 13). Data Analytics and Computational Social Science: HW2blog. Retrieved from https://github.com/DACSS/dacss_course_website/posts/httpsrpubscomhmuleyumass865375/
BibTeX citation
@misc{mulvey2022hw2blog, author = {Mulvey, Henry}, title = {Data Analytics and Computational Social Science: HW2blog}, url = {https://github.com/DACSS/dacss_course_website/posts/httpsrpubscomhmuleyumass865375/}, year = {2022} }