【发布时间】:2013-03-23 04:24:03
【问题描述】:
我有一个看起来像这样的数据框
df <- data.frame(cbind(1:10, sample(c(1:5), 10, replace=TRUE)))
# in real case the columns could be more than two
# and the column name could be anything.
我想要做的是删除所有列的值所在的所有行 小于 5。 有什么办法呢?
【问题讨论】: