Tutorials References Exercises Videos Menu
Create Website Get Certified Upgrade

R Syntax


Syntax

To output text in R, use single or double quotes:

Example

"Hello World!"
Try it Yourself »

To output numbers, just type the number (without quotes):

Example

5
10
25
Try it Yourself »

To do simple calculations, add numbers together:

Example

5 + 5
Try it Yourself »

Congratulations! You have now written your first R code.