powered by
Counts the number of values in a vector that are equal to a specified value.
sumbrk(x,trueval=TRUE,na.rm=TRUE)
nil
a character, factor or numeric vector.
the value to be matched in x.
whether to remove NA values.
Jim Lemon
sumbrk counts the values in x matching a specified value. It is mainly to allow these sums to be calculated in the brkdnNest function.
brkdnNest
sumbrk(sample(LETTERS,100,TRUE),trueval="M")
Run the code above in your browser using DataLab