Re: [R] (no subject)

From: Gavin Simpson <gavin.simpson_at_ucl.ac.uk>
Date: Wed 02 Nov 2005 - 23:27:12 EST

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@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.
%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%

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 Wed Nov 02 23:33:46 2005

This archive was generated by hypermail 2.1.8 : Thu 03 Nov 2005 - 02:13:39 EST