定义一个长度为0的向量
> x<-c()> length(x)[1] 0
修改该向量的类型
> class(x)="numeric"> class(x)[1] "numeric"
> class(x)="logical"> class(x)[1] "logical"