[R] how to divide each column in a matrix by its colSums?

Spencer Graves spencer.graves at structuremonitoring.com
Sun Nov 28 22:59:55 CET 2010


Thanks:  I didn't read the prop.table help page with sufficient care.


On 11/28/2010 1:48 PM, casperyc wrote:
> I am using
>> prop.table(m,1)
> and
>> prop.table(m,2)
> my aim.
> which I think is the most 'easy' way.
>
> Thanks.
>
> Casper


-- 
Spencer Graves, PE, PhD
President and Chief Operating Officer
Structure Inspection and Monitoring, Inc.
751 Emerson Ct.
San José, CA 95126
ph:  408-655-4567



More information about the R-help mailing list