The City of Chicago is releasing selected datasets from the data portal under the MIT License (see below). This repository contains:
- Data in a comma separated values (CSV) format.
- Examples of importing data into R.
The data was released as a CSV file. Below are some simple instructions which will show you how to load CSV in R.
Find an example script here. This example will import the data in R and create a couple of maps.
Instructions:
-
Set the working directory to the location of the downloaded repository.
setwd("path\\to\\folder")
-
Import data:
bike.racks <- read.csv("data\\Bike_Racks.csv")
-
Review the new dataframe:
head(bike.racks)
-
Ensure the map works:
plot(bikes.racks$Longitude, bike.racks$Latitude)
Here is the output you should expect from the plot() command:
This data is released under the MIT License. See LICENSE.txt.