sweep(m,1,rowSums(m),"/") sweep(m,2,colSums(m),"/")
On 11/28/2010 9:55 PM, casperyc wrote: > > In that case, there are values >1, > which is clearly not what I wanted. > > Thanks. > > I think I should use prop.table > > ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.