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 > >