From the course: Tableau and R for Analytics Projects

Unlock the full course today

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

Create calculations in R

Create calculations in R

From the course: Tableau and R for Analytics Projects

Start my 1-month free trial

Create calculations in R

- [Instructor] In the previous movie, we loaded data into an R data frame, now that it's there we can analyze it. These specific expressions you create will depend on your data and the insights you want to gain. So just take what I give you and this movie as examples and demonstrations. I've left my R console open from the previous movie, and you can see that I have imported data into a data frame named revenue, using the read table command. If you need to load your data into your variable again, then go ahead and pause the movie, enter the command, and you can follow along when you're ready. Now let's go ahead and create some calculations just in general and also based on our data. So let's say that I want to perform a simple calculation, let's say that I want to multiply 14 by 19, I'll type a 14 followed by an asterisk and then 19 and enter, and it displays the value of 266. What it doesn't do is assign the value to a…

Contents