R is a free programming language for performing statistical calculations.
First, you need to download R and its graphical interface called RStudio. See the syllabus for download instructions.
These are the two tools that you have downloaded from the internet:
- R.app (we also call it the R Console)
- RStudio — the graphical interface for accessing R
We can run R via either of the above tools. But Rstudio looks complicated. So our plan is to first learn R by using R.app (the R Console) first before we use RStudio.
Goal of this Lesson:
Try out R in R Console.
Instructions
Here is what you need to do in this lesson:
Watch the following video and do your R1 assignment. While the video demonstration below uses a Mac, both PC and Mac users will see a similar screen layout in R.
Very important!!!
Please follow the instructions below carefully as that’s how the grader grades your assignment. If you want a good grade, you should always double check your work a day or two after you finish it to make sure that you didn’t miss anything.
Details
In the video, I typed three arithmetic operations: 2 + 3, 6*10 and 7/3.
— Now, what you need to do is to come up with your own three arithmetic operations (addition, multiplication and division). For example, you can type 101 +7, 60*2 and 55/9.
— You do NOT need to clear your screen in doing your assignment. (For some of you, you might see a bunch of text displayed on the screen after your three arithmatic operations. That’s fine. Just leave it there. See irrevelant_text.
— Then save your results in a .txt file (as shown in the video). See below for more instructions.
— Submit your .txt file to Canvas before the due date.
Regarding the .txt file:
For PC:
Ch 1.1 and 1.2 of the documentation below also shows you how to interact with the R Console:
-END-