From the course: R Programming in Data Science: High Variety Data

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

CSV files in R

CSV files in R

From the course: R Programming in Data Science: High Variety Data

Start my 1-month free trial

CSV files in R

[Instructor] In data science you are going to be importing a lot of comma separated value files. So let's go over how to do that with R. If you look in the sample files folder in the exercise files, I've provided a sample CSV file called Extra-vehicular_Activity_EVA etc., etc. Let's take a look at it real quick. And what you'll immediately notice about this file is that it uses commas to separate the fields. This is what is different about this and maybe a tab delimited file which is separated by tabs. But the important thing to note is that this data is all separated into fields using commas. Note that some of these fields contain dates and they're not always consistently represented. Notice that this is zero six zero three 1965, and this is a string marked as March 16-17, 1966. There can be long text, there can be bouillons, there can be all kinds of things mixed into the text, and we'll see how that works differently in some cases. So let's go back to our code. If you haven't…

Contents