In Programming languages, variable plays a very important role. Variables are used to store data values.
In R, we do not require any command for declaring variable. Variable can be easily created by using assignment operator <- .It is created the moment we assign a value to it.
Example:
> name<-"abc"
> age<-30
> name
>age
Output:
[1] "abc" [1] 30