Numeric, integer, complex, character and logical are basic data types in R.
In R, the class() function is used to find out the type of data.
E.g;
x <- 3 + 9
class(x)
We will get "numeric" as the output we write these codes to the program.