Answers for "how to convert character data type to integer in r"

R
0

character to integer in r

x = "1.3"
x = as.Integer(x)
# x = 1
is.Integer(x)
# TRUE
Posted by: Guest on February-18-2021

Code answers related to "how to convert character data type to integer in r"

Browse Popular Code Answers by Language