Skip to content
Prev 309423 / 398506 Next

"NA-friendly" operator

On 30-10-2012, at 22:08, vincent guyader wrote:

            
You could define one

 "%>.nona%" <- function(x,y) x[x>y & !is.na(vec)]

and use

 vec %>.nona% 2

Use  ?`%in%` to see an example (in the Examples section)

Berend