Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

R as a calculator

These two examples demonstr demonstrate how R can be used a calculator

...

Warnings do not stop the execution of a function. The warning messages can clutter the results. It is best to correct the cause of the warnings. In this instance, set two vectors and of the same length and complete the multiplication again.

R console

...

 ("Advanced" users)

The R console can be opened from (1) the command-prompt in Windows or in the terminal in MacOs and Unix. By typing the command R, a R console opens automatically. This command is part of the R installation (see What is R programming language?.) Advanced users who are familiarised with such tools should explore this option. 

Some R console have been implemented online, Tutorialspoint - R Tutorial provides many live examples that can be edited. R Studio also offers some R Notebooks. The latter interactively runs some R command and show the results in a more user-friendly manner. We have provided some information about the R Notebooks in our additional reading list, but we will not be using them in this tutorial. 



What can I learn next?

R functions and packages