how to check the data types in R. code example
Example: data types in r
# Create a matrix.
M = matrix( c('a','a','b','c','b',1), nrow = 2, ncol = 3, byrow = TRUE)
print(M)
# Create a matrix.
M = matrix( c('a','a','b','c','b',1), nrow = 2, ncol = 3, byrow = TRUE)
print(M)