[R] Array reversed
Berton Gunter
gunter.berton at gene.com
Fri Dec 2 06:52:36 CET 2005
Please use R's existing help system before posting to the list.
help.search('reverse') is an obvious first thing to try, don't you think
(and gives you the almost obvious answer immediately)?
-- Bert Gunter
Genentech
-----Original Message-----
From: r-help-bounces at stat.math.ethz.ch
[mailto:r-help-bounces at stat.math.ethz.ch] On Behalf Of Julio Thomas
Sent: Thursday, December 01, 2005 8:44 PM
To: r-help at stat.math.ethz.ch
Subject: [R] Array reversed
Dear R-helper,
Is there a command to get an array indexed 1 to T from T to 1?
For example:
a <- c(1, 2, 3)
and by applying such a command I can get
a[1] = 3
a[2] = 2
a[3] = 1
Thanks a lot and best regards
Julio
---------------------------------
[[alternative HTML version deleted]]
______________________________________________
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
More information about the R-help
mailing list