From the course: Tableau and R for Analytics Projects
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Import data into R
From the course: Tableau and R for Analytics Projects
Import data into R
- [Instructor] We'll do most of our analysis in this course using Tableau, but it is useful to know how to analyze the data in R by itself. In this movie, I will demonstrate the most fundamental R skill, loading data into a data frame. Once you've created the data frame you can write R expressions to analyze your data. I've started a new R console, and I can begin by assigning data to a data frame. To start, at the command line, I will type the name of the variable that will represent my data frame. So I'll type revenue, the assignment operator in R can either be an equals sign or the one that most programs prefer to use is a left pointing arrow. You see that we have a less than sign, followed by a hyphen, and it looks like an arrow pointing toward the variable that we just created. Now, we need to load the data into the data frame. To do that from a .csv, or comma-separated value file, we can use the read.table command…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.