The R Project SVN R

Rev

Rev 11040 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 11040 Rev 15561
Line 2... Line 2...
2
\title{Express table entries as fraction of marginal table}
2
\title{Express table entries as fraction of marginal table}
3
\usage{
3
\usage{
4
prop.table(x, margin=NULL)
4
prop.table(x, margin=NULL)
5
}
5
}
6
\alias{prop.table}
6
\alias{prop.table}
-
 
7
\arguments{
7
 \item{x}{ table }
8
 \item{x}{ table }
8
 \item{margin}{ index, or vector of indices to generate margin for}
9
 \item{margin}{ index, or vector of indices to generate margin for}
9
}
10
}
10
 
11
 
11
\description{ This is really \code{sweep(x, margin, margin.table(x,
12
\description{ This is really \code{sweep(x, margin, margin.table(x,
Line 22... Line 23...
22
\examples{
23
\examples{
23
m<-matrix(1:4,2)
24
m<-matrix(1:4,2)
24
m
25
m
25
prop.table(m,1)
26
prop.table(m,1)
26
}
27
}
27
\keyword{ array }%-- one or more ...
28
\keyword{ array }