Variables in R are containers for storing data values like numbers, text, or complex objects like vectors and data frames. R is dynamically typed β meaning you donβt have to declare the data type ahead of time.
π How to Declare Variables
Use <- or = for assignment (prefer <-)
Variable names are case-sensitive
No need to specify data type β R figures it out automatically
π Example: Creating Variables
Console output will appear here...
π‘ Tip: Variable names can contain letters, numbers, periods, and underscores β but canβt start with a number.