[R] (no subject)

Gavin Simpson gavin.simpson at ucl.ac.uk
Wed Nov 2 13:27:12 CET 2005


On Wed, 2005-11-02 at 13:10 +0100, Illyes Eszter wrote:
> 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? 

For standardising by row total look at decostand() with method = "total"
in package vegan.

(360 / (2 * pi)) * asin(sqrt(x)) where x is vector of data-points will
apply that transformation. If you want to apply it to all columns in
your dataframe then look at ?sapply and modify the above accordingly.

HTH

G

> 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 at 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
-- 
%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%
Gavin Simpson                     [T] +44 (0)20 7679 5522
ENSIS Research Fellow             [F] +44 (0)20 7679 7565
ENSIS Ltd. & ECRC                 [E] gavin.simpsonATNOSPAMucl.ac.uk
UCL Department of Geography       [W] http://www.ucl.ac.uk/~ucfagls/cv/
26 Bedford Way                    [W] http://www.ucl.ac.uk/~ucfagls/
London.  WC1H 0AP.
%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%




More information about the R-help mailing list