[R] division of col by the sum of the col

Bert Gunter gunter.berton at gene.com
Tue Sep 23 17:22:39 CEST 2014


Neither. Unless I misjudge, you really really need to do your homework
and read some basic R documentation -- e.g. An Intro to R, which ships
with R (and also the Posting Guide) -- before posting here further.

-- Bert

Bert Gunter
Genentech Nonclinical Biostatistics
(650) 467-7374

"Data is not information. Information is not knowledge. And knowledge
is certainly not wisdom."
Clifford Stoll




On Tue, Sep 23, 2014 at 8:10 AM, carol white <wht_crl at yahoo.com> wrote:
> Hi,
> If I want to divide the column of a matrix by the sum of the column, should I loop over the columns or can I use apply family?
>
>
> Regards,
>
> Carol
>         [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at 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.



More information about the R-help mailing list