实例 R 语言 创建一个整型

x
 
x <- 10.5
y <- 55
# Print values of x and y
x
y
# Print the class name of x and y
class(x)
class(y)
                    

输出结果

[1] 1000
[1] 55
[1] "integer"
[1] "integer"