Java Mailing List Archive

http://www.r-help.com/

Home » R Help for Statistical Computing »

[R] invert order

Sebastian Kruk

2010-09-01

Replies: Find Java Web Hosting

Author LoginPost Reply
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@(protected)
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.
©2008 r-help.com - Jax Systems, LLC, U.S.A.