[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