In Programming Language, we need to use variables to store information. Variables are used to store data of different types. As we know different data types requires a different size of memory space. We can perform some specific operations on these data types.
In R, Everything is an object. R has the following basic data types:
In R Language, logical value is created by comparison between two or more variables.
x=2 y=3 z=x>y print(z) print(typeof(z))
 FALSE  "logical"
It is a data type that is used for numbers in R.
Output:  "double"
It supports integer data types which are the set of all integers.
Output:  "integer"
It is a data type that supports all the alphabets and special characters.
Output:  "character"
This data type support set of all the complex numbers.
Output:  "complex"