【发布时间】:2021-09-24 00:27:43
【问题描述】:
我需要提取第一次那个深度大于0.61m的值。对于此类问题,我已经看到了几个复杂的答案,但我需要一个简单且最快速的答案。感谢您的帮助
感谢您的帮助。
rating_curve = data.frame(time_h = c(0.01, 0.02, 0.03, 0.04, 0.05, 0.06),
depth_m = c(0, 0.2, 0.3, 0.5, 0.7, 0.62))
正确答案
[1] 0.05
【问题讨论】:
-
rating_curve$time_h[which(rating_curve$depth_m>0.61)[1]]
标签: r