Count specified values in a vector
Counts the number of values in a vector that are equal to a specified value.
sumbrk(x,trueval=TRUE,na.rm=TRUE)
x |
a character, factor or numeric vector. |
trueval |
the value to be matched in x. |
na.rm |
whether to remove NA values. |
sumbrk counts the values in x matching a specified value. It is mainly to allow these sums to be calculated in the brkdnNest function.
nil
Jim Lemon
sumbrk(sample(LETTERS,100,TRUE),trueval="M")
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.