Course Content
R Introduction: Part I
1. Basic Syntax and Operations
R Introduction: Part I
Hello, R!
Welcome to the introductory R course! Throughout this course, you’ll become proficient with R’s fundamental syntax, operations, and data types.
In contrast to many other programming languages, R doesn’t require a specific function to display output. Let's embark on our R journey with some simple arithmetic to get things started.
In R, you can carry out basic arithmetic using the usual operators: +
for addition, -
for subtraction, *
for multiplication, and /
for division. For instance, we can compute a few mathematical expressions.
Please note, each new operation should begin on a new line.
Task
Perform the following calculations using basic arithmetic operations:
30 + 24
50 - 36
19 * 7
After completing these tasks, press the button below the code to check your answers.
Everything was clear?