正文R根据列名提取想要的列IP云V管理员/2022-12-02/2 阅读 12/02提示:扫一扫查出行【扫一扫了解最新限行尾号】复制提示 数据格式如下: a b c d e 1 2 3 4 5 使用select过滤不要的列 df[,-which(names(df)%in%c("a","b")] subset(df,select=-c(a,b)) 使用select选择想要的列 df[ , c("x","y")] subset(df, select=c(x,y))