The dataset that consists of the inspections of restaurants and other food estab
ID: 3305368 • Letter: T
Question
The dataset that consists of the inspections of restaurants and other food establishments in Chicago is given at the following link. The name of some of the variables has space, and this will create a problem for the data analysis.
http:/594442.youcanlearnit.net/inspections.csv
Import the data set from the above link
Rename all the variables as follows
ID, DBAName AKAname, License, FacilityType, Risk, Address, City, State, ZIP, InspectionDate, InspectionType, Results, Violations, Latitude, Longitude and Location
PLEASE PROVIDE R CODE
Explanation / Answer
The file is 167MB . we cant load this much data in R due to in memory constraints.if you have 8gb or higher ram then you should not face problem. However in order to change the column names for the variables
you can use the following R code
if the dataframe is df
then the R snippet is
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.