Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
可能重复: 删除列 R 数据框
假设,我有以下数据框,并且想要删除列“dataB”,那么 R 命令会是什么?
y <- data.frame(k1=c(101,102,103,104,105,106,107,108), B=c(11,12,13,NA,NA,16,17,18), dataB=11:18)
这:从 dataframey$B <- NULL中删除列。By
y$B <- NULL
B
y