April 2018
Beginner
238 pages
7h 13m
English
We will show how to access a CSV file using R. This and the other languages available in Jupyter work in a very similar manner.
For this example, I will be accessing the heating data from https://raw.github.com/vincentarelbundock/Rdatasets/master/csv/Ecdat/Heating.csv. In my case, I have downloaded the file to access it locally (I was developing the access on a train ride and was unclear about the internet access). This file has costs for different heating choices made by homeowners in California.
We can read in the file to a DataFrame using the read.csv command:
heating <- read.csv(file="https://raw.github.com/vincentarelbundock/Rdatasets/master/csv/Ecdat/Heating.csv", header=TRUE, sep=",")
The resulting DataFrame is named ...