如题。具体来说 比如我有一个dataframe如果选取其中一列我知道可以用 df$column3 或者 df[[3]]
当我想反向选取,比如除第三列之外所有列时候应该如何定义。
新手,谢谢帮助!
polo1478
class(mtcars) mtcars mtcars[, -3]
非常感谢!