Re: [R] (no subject)

From: <ManuelPerera-Chang_at_fmc-ag.com>
Date: Thu 03 Nov 2005 - 01:34:07 EST

Hi Eszter,
These are all in the "base" package ..
Please try ...

?sapply
?diag
?sqrt

for the standardization ...

invTotal<-t(1/sapply(mydataset,sum,na.rm=T)) szorzo<-diag(as.vector(invTotal),length(invTotal)) szorzo%*%t(mydataset)

Szia,

Manuel

                                                                                                                                       
                                                                                                                                       
                                                                                                                                       




Dear Colleagues,

It is Eszter Illyés from Hungary. I just have started to use R yesterday, so I am a real beginner (but I could run some PCOA and managed to transpose a dataframe).

No I have a problem that I would like to standardize my datafile with the row totals and than make an arcsin squareroot transformation. How can I do that? In which package shall I look for and for what option?

Thank you very much, have a nice day

Eszter



Képtipp! Játssz a T-Online képkeresőjével! Ha elég ügyes és gyors vagy, felkerülhetsz a dicsőségtáblára... www.t-online.hu

R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide!
http://www.R-project.org/posting-guide.html

R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Thu Nov 03 01:42:55 2005

This archive was generated by hypermail 2.1.8 : Thu 03 Nov 2005 - 05:10:49 EST