File: sumbrk.Rd

package info (click to toggle)
r-cran-plotrix 3.2-6-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 1,136 kB
  • sloc: makefile: 3
file content (26 lines) | stat: -rw-r--r-- 667 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
\name{sumbrk}
\alias{sumbrk}
\title{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{
  \item{x}{a character, factor or numeric vector.}
  \item{trueval}{the value to be matched in \samp{x}.}
  \item{na.rm}{whether to remove NA values.}
}
\details{
 \samp{sumbrk} counts the values matching a specified value.
 It is mainly to allow these sums to be calculated in the \samp{brkdnNest}
 function.
}
\value{nil}
\author{Jim Lemon}
\seealso{\link{brkdnNest}}
\examples{
 sumbrk(sample(LETTERS,100,TRUE),trueval="M")
}
\keyword{misc}