Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

sumbrk

Count specified values in a vector


Description

Counts the number of values in a vector that are equal to a specified value.

Usage

sumbrk(x,trueval=TRUE,na.rm=TRUE)

Arguments

x

a character, factor or numeric vector.

trueval

the value to be matched in x.

na.rm

whether to remove NA values.

Details

sumbrk counts the values in x matching a specified value. It is mainly to allow these sums to be calculated in the brkdnNest function.

Value

nil

Author(s)

Jim Lemon

See Also

Examples

sumbrk(sample(LETTERS,100,TRUE),trueval="M")

plotrix

Various Plotting Functions

v3.8-1
GPL (>= 2)
Authors
Jim Lemon, Ben Bolker, Sander Oom, Eduardo Klein, Barry Rowlingson, Hadley Wickham, Anupam Tyagi, Olivier Eterradossi, Gabor Grothendieck, Michael Toews, John Kane, Rolf Turner, Carl Witthoft, Julian Stander, Thomas Petzoldt, Remko Duursma, Elisa Biancotto, Ofir Levy, Christophe Dutang, Peter Solymos, Robby Engelmann, Michael Hecker, Felix Steinbeck, Hans Borchers, Henrik Singmann, Ted Toal, Derek Ogle, Darshan Baral, Ulrike Groemping, Bill Venables
Initial release
2021-01-21

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.