Answers for "character 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

Browse Popular Code Answers by Language