The R Project SVN R

Rev

Rev 59039 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 59039 Rev 61150
Line 5... Line 5...
5
 
5
 
6
\name{prop.table}
6
\name{prop.table}
7
\title{Express Table Entries as Fraction of Marginal Table}
7
\title{Express Table Entries as Fraction of Marginal Table}
8
\concept{proportions}
8
\concept{proportions}
9
\usage{
9
\usage{
10
prop.table(x, margin=NULL)
10
prop.table(x, margin = NULL)
11
}
11
}
12
\alias{prop.table}
12
\alias{prop.table}
13
\arguments{
13
\arguments{
14
 \item{x}{ table }
14
 \item{x}{ table }
15
 \item{margin}{ index, or vector of indices to generate margin for}
15
 \item{margin}{ index, or vector of indices to generate margin for}
Line 25... Line 25...
25
\author{ Peter Dalgaard }
25
\author{ Peter Dalgaard }
26
 
26
 
27
\seealso{\code{\link{margin.table}}}
27
\seealso{\code{\link{margin.table}}}
28
 
28
 
29
\examples{
29
\examples{
30
m <- matrix(1:4,2)
30
m <- matrix(1:4, 2)
31
m
31
m
32
prop.table(m,1)
32
prop.table(m, 1)
33
}
33
}
34
\keyword{ array }
34
\keyword{ array }