1.3.4 Working with Data - Video 2 Getting Started in R
You should have already downloaded and installed R on your computer. If you have not downloaded and installed R yet, please follow the instructions on the course website before continuing with this lecture. Once you've installed R, go ahead and start it. You should see the R console like we see here. This is where we'll type commands and perform data analysis. In this course, we'll mostly be working in the R console, but sometimes you'll also want to use what are known as "script files." We'll see an example of how to use a script file at the end of this lecture. In your R console, you'll always type commands after the arrow, or "greater than" sign. Let's start with some basic calculations. So with your cursor at the arrow, let's type 8, and then the star symbol for "times," the number 6, and hit Enter. You should see the result 48, or 8 times 6. In this way, R can be used as a basic calculator. We can perform ...