R/numberof.R

numberof <- function(x, f) { 
  sum(rep(1, length(x))[f(x)])
}

Try the cwhmisc package in your browser

Any scripts or data that you put into this service are public.

cwhmisc documentation built on May 1, 2019, 7:55 p.m.