[R] Reimplement order somehow

XpeH sw0rdf1sh_i at yahoo.com
Wed Oct 3 15:14:26 CEST 2007

Hello, Thierry

Thank you for the fast reply

actually my php script is not correct, the correct logic is R script, by
writing this peace of code in php I tried to do the same logic that R script
does. But this php programm algorirm probably is not correct so results are
incorrect also.

I am trying to understand how the order method in R language works, and then
I'd like to do the same in some other language. 

ONKELINX, Thierry wrote:
> You're sorting characters in the PHP script instead of numbers! 
> sort(as.character(o)) in R will yield the same results as you PHP script
> does.
> Thierry
> ------------------------------------------------------------------------
> ----
> ir. Thierry Onkelinx
> Instituut voor natuur- en bosonderzoek / Research Institute for Nature
> and Forest
> Cel biometrie, methodologie en kwaliteitszorg / Section biometrics,
> methodology and quality assurance
> Gaverstraat 4
> 9500 Geraardsbergen
> Belgium
> tel. + 32 54/436 185
> Thierry.Onkelinx at inbo.be
> www.inbo.be 
> Do not put your faith in what statistics say until you have carefully
> considered what they do not say.  ~William W. Watt
> A statistical analysis, properly conducted, is a delicate dissection of
> uncertainties, a surgery of suppositions. ~M.J.Moroney

View this message in context: http://www.nabble.com/Reimplement-order-somehow-tf4561576.html#a13018599
Sent from the R help mailing list archive at Nabble.com.

More information about the R-help mailing list