摘要: 数据格式如下: 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)) 阅读全文
posted @ 2019-06-26 14:25 raisok 阅读(8722) 评论(0) 推荐(0) 编辑