(Old) R — Biostatistics 2020

R1 — Try out R Console

By


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.

R 1 – Try out R Console

 

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:

If the extension  .txt  is not shown on your screen when you are saving t he document, then it could be because your desktop is not set to show file extensions. To show file extension on your computer, do the following:

For PC:

For Mac,
References

Ch 1.1 and 1.2 of the documentation below also shows you how to interact with the R Console:

Instant-R

-END-

 

 



Content is copyright the author. Layout is copyright Mark Ciotola. See Corsbook.com for further notices.