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.
我需要根据数据帧的上 85-95% bin 对数据帧中的值进行子集化。有谁知道我该怎么做?
您可以使用quantile来确定哪个值是 85 或 95% bin。接下来,您可以使用正常的 R 子集语法来仅获取高于该阈值的数据。
quantile
df[df$value > quantile_thold,]