File: propbrk.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 (27 lines) | stat: -rw-r--r-- 722 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
27
\name{propbrk}
\alias{propbrk}
\title{Calculate the proportion of specified values in a vector}
\description{
 Calculates the proportion of values in a vector that are equal to a specified
 value.
}
\usage{
 propbrk(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{propbrk} calculates the proportion of values matching a specified value.
 It is mainly to allow proportions to be calculated in the \samp{brkdnNest}
 function.
}
\value{nil}
\author{Jim Lemon}
\seealso{\link{brkdnNest}}
\examples{
 propbrk(sample(LETTERS,100,TRUE),trueval="M")
}
\keyword{misc}