names(X2) <- C("A","B","C","D") 返回的是 names(X2) <- C("A","B","C","D") Error in C("A", "B", "C", "D") : 不能把对象解释成因子 为什么啊
X2=1:4names(X2) <- c("A","B","C","D")X2
我的可以啊,你是不是把c写成了大写