vector(mode=类型,length=长度)
创建向量可创建指定长度的空向量
> x<-vector("integer",8)
> x
[1] 0 0 0 0 0 0 0 0```
ceiling强制五入
ceiling(12.1)
[1] 13```
floor强制去掉小数点
> floor(13.7)
[1] 13```
vector(mode=类型,length=长度)
创建向量可创建指定长度的空向量
> x<-vector("integer",8)
> x
[1] 0 0 0 0 0 0 0 0```
ceiling强制五入
ceiling(12.1)
[1] 13```
floor强制去掉小数点
> floor(13.7)
[1] 13```