Dear lists,
   
  I want to write a function of a vector and reverse the order of its elements. Here is my code:
   
  revector<-function(n){
 y=vector(length=n)
  for(i in n:1){
    y[i]=i
    }
return(y)
}
   
  i want my output to be like this:
  y
   [1] 10  9  8  7  6  5  4  3  2  1
   
  Any suggestion?? Thanks!!
  Cheers,
  Anisah

       
---------------------------------

	[[alternative HTML version deleted]]

