Rev 15561 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
\name{prop.table}\title{Express table entries as fraction of marginal table}\usage{prop.table(x, margin=NULL)}\alias{prop.table}\arguments{\item{x}{ table }\item{margin}{ index, or vector of indices to generate margin for}}\description{ This is really \code{sweep(x, margin, margin.table(x,margin), "/")} for newbies, except that if \code{margin} has lengthzero, then one gets \code{x/sum(x)}. }\value{Table like \code{x} expressed relative to \code{margin}}\author{ Peter Dalgaard }\seealso{\code{\link{margin.table}}}\examples{m<-matrix(1:4,2)mprop.table(m,1)}\keyword{ array }