[R] which.pmin?

Thomas Lumley tlumley at u.washington.edu
Fri Jan 21 23:36:56 CET 2005


On Fri, 21 Jan 2005, Seung Jun wrote:

> If R had a element-wise ternary function, I'd like to do something like this:
>
>   (fpr.floor < fpr.ceiling) ? k.floor : k.ceiling
>

R does:  ifelse()

 	-thomas




More information about the R-help mailing list