Prepare the environment by following these steps:
- Download and install MongoDB.
- Start mongod as a background process.
- Make sure the Chicago_Crimes_2012_to_2017.csv file is in the working directory of R.
- Install the rmongodb, mongolite, ggplot2, ggmap, data.table, dplyr packages for this recipe:
install.packages(c("rmongodb", "mongolite", "ggplot2", "ggmap", "data.table", "dplyr"))