powered by
Counts the number of values in a vector that are equal to a specified value.
sumbrk(x,trueval=TRUE,na.rm=TRUE)
a character, factor or numeric vector.
the value to be matched in x.
whether to remove NA values.
nil
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
# NOT RUN { sumbrk(sample(LETTERS,100,TRUE),trueval="M") # }
Run the code above in your browser using DataLab