• 2022-05-27
    继续上题,为了程序编写简洁,要给数据框x中的6列重新命名为x1,x2,x3,x4,x5,x6,应该使用的命令是()
    A: ColNames(x) <- c("x1","x2","x3","x4","x5","x6")
    B: Names(x) <- c("x1","x2","x3","x4","x5","x6")
    C: colnames(x) <- c("x1","x2","x3","x4","x5","x6")
    D: colname(x) <- c("x1","x2","x3","x4","x5","x6")