how.many | R Documentation |
This function finds number of elements which are TRUE in a logical vector
how.many(x)
x |
A logical vector |
A non-negative integer of length 1.
Baidya Nath Mandal <mandal.stat@gmail.com>
x <- c(1,-1,1,-1,1,-1) how.many(x == -1) how.many(seq(1,7,2) == 3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.