Does R have a base function that takes a predicate and a vector as arguments, and returns the first member for which the predicate is true?

后端 未结 0 467
無奈伤痛
無奈伤痛 2020-12-05 22:32

I thought that match or which would be up to the task, but they appear to not be. For example, assume that I have the function divisibleByFiv

相关标签:
回答
  • 消灭零回复
提交回复
热议问题