Count the number elements that satisfy a condition.
numberof
counts the number elements that satisfy a condition.
numberof(x, f)
x |
Numerical array. |
f |
Logical function emulating the condition to be satisfied. |
Christian W. Hoffmann <christian@echoffmann.ch>
numberof(c(1:100,NA,NA,NaN),function(x) !is.na(x))
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.