  Hi,

Maybe
sort(x, decreasing=TRUE)
would do it

HTH,
Ivan

Le 9/1/2010 16:56, Sebastian Kruk a écrit :
> Dear R-help list users,
>
> I have a huge vector of numbers, how I can invert orden?
>
> For example
>
> x<- 1:10000000
>
> I would like to obtain
>
> x_r<- 10000000:1
>
> Thanks,
>
> Sebastian.
>
> ______________________________________________
> R-help@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>

-- 
Ivan CALANDRA
PhD Student
University of Hamburg
Biozentrum Grindel und Zoologisches Museum
Abt. Säugetiere
Martin-Luther-King-Platz 3
D-20146 Hamburg, GERMANY
+49(0)40 42838 6231
ivan.calandra@uni-hamburg.de

**********
http://www.for771.uni-bonn.de
http://webapp5.rrz.uni-hamburg.de/mammals/eng/mitarbeiter.php


	[[alternative HTML version deleted]]

