Fundamentals Of R Programming Part -1

1–2 minutes

read

Variables:

  • #Variables in R serve as containers to store values. R primarily utilizes five main variable types: Integer, Double, Complex, Character, and Logical.
  • In R, the assignment operator “<-” is used to assign a value to a variable.
  • Next, ensure to save your R script to prevent any loss of work. To create a new script for additional coding, click on the “+” button located at the top left corner of R Studio and select “R Script.”
  • To reset and clear the environment, click on the broom button located in the Environment section. This action allows you to start with a fresh workspace.

To execute the code in R Studio

  • In contrast to other programming languages where commands like “Print” or “printf” are used to execute the program.
  • In R, executing the program is as simple as calling the object in the next line of code.

Leave a comment