Fri Oct 28, 2016
.xlsx files aren't the best file format as they not only contain the data, but also lots of Microsoft metadata (data about the data) that we don't need..csv files are a minimalist format for spreadsheet data..csv file (example) is just data and no fluff:
Note .csv files are in tidy data format.
.xlsx to .csvYou can convert .xlsx files to .csv format from Excel (and Google Docs):
.csv to the filenameToday you will load the DD_vs_SB.csv file that contains the Dunkin Donuts and Starbucks data from Question 2 from Midterm II so that you can use it for Problem Set 07.
PS-07.Rmd and DD_vs_SB.csv to your Problem Set folder on RStudio server.DD_vs_SB.csv -> OpenView() panel should pop up with the data. Make sure the variable names are correct.Now look at your console. You should see a line that looks something like:
DD_vs_SB <- read.csv("~/Problem_Sets/DD_vs_SB.csv")
This is the line of code that loads the CSV file into R and assigns it to an object called DD_vs_SB, which you will be working with.
PS-07.RmdPS-07.Rmd!