print data type R
# Define a variable with numeric value
numeric_var <- 123
# Print the data type of the variable
print(class(numeric_var))
# Define a variable with character value
character_var <- "Hello, World!"
# Print the data type of the variable
print(class(character_var))
# Define a variable with logical value
logical_var <- TRUE
# Print the data type of the variable
print(class(logical_var))