Intermediate Importing Data in R
Filip Schouwenaars
Instructor, DataCamp
Already worked with it!
Many packages handle it for you
File formats useful for web technology
JSON
HyperText Transfer Protocol
Rules about data exchange between computers
Language of the web
HyperText Transfer Protocol
Rules about data exchange between computers
Language of the web
HyperText Transfer Protocol
Rules about data exchange between computers
Language of the web
HyperText Transfer Protocol
Rules about data exchange between computers
Language of the web
HyperText Transfer Protocol
Rules about data exchange between computers
Language of the web
http://assets.datacamp.com/ ... /states.csv
# Manually download file through web browser
read.csv(url("path/to/states.csv"))
state capital pop_mill area_sqm
1 South Dakota Pierre 0.853 77116
2 New York Albany 19.746 54555
3 Oregon Salem 3.970 98381
4 Vermont Montpelier 0.627 9616
5 Hawaii Honolulu 1.420 10931
read.csv("http://assets.datacamp.com/course/
importing_data_into_r/states.csv")
state capital pop_mill area_sqm
1 South Dakota Pierre 0.853 77116
2 New York Albany 19.746 54555
3 Oregon Salem 3.970 98381
4 Vermont Montpelier 0.627 9616
5 Hawaii Honolulu 1.420 10931
read.csv("http://assets.datacamp.com/course/
importing_data_into_r/states.csv")
state capital pop_mill area_sqm
1 South Dakota Pierre 0.853 77116
2 New York Albany 19.746 54555
3 Oregon Salem 3.970 98381
4 Vermont Montpelier 0.627 9616
5 Hawaii Honolulu 1.420 10931
Intermediate Importing Data in R