Re: [R] Assignment of values with different indexes

2012-12-06 Thread arun
; David Winsemius Sent: Thursday, December 6, 2012 12:44 AM Subject: Re: [R] Assignment of values with different indexes No, because it does not assign the indexes of myindex. If its not possible, which I am assuming its not, thats OK.  I thought that if I had say 10 observations, sequential

Re: [R] Assignment of values with different indexes

2012-12-05 Thread arun
quot; Cc: Sent: Wednesday, December 5, 2012 9:47 PM Subject: [R] Assignment of values with different indexes I would like to take the values of observations and map them to a new index.  I am not sure how to accomplish this.  The result would look like so: x[1,2,3,4,5,6,7,8,9,10] becomes y[2,4,6,8,1

Re: [R] Assignment of values with different indexes

2012-12-05 Thread Brian Feeny
t; > > - Original Message - > From: Brian Feeny > To: "r-help@r-project.org help" > Cc: > Sent: Wednesday, December 5, 2012 9:47 PM > Subject: [R] Assignment of values with different indexes > > > I would like to take the values of observations a

Re: [R] Assignment of values with different indexes

2012-12-05 Thread David Winsemius
On Dec 5, 2012, at 6:47 PM, Brian Feeny wrote: I would like to take the values of observations and map them to a new index. I am not sure how to accomplish this. The result would look like so: x[1,2,3,4,5,6,7,8,9,10] becomes y[2,4,6,8,10,12,14,16,18,20] This suggests to me that you a

Re: [R] Assignment of values with different indexes

2012-12-05 Thread Pascal Oettli
Hello, I am sorry, but I sincerely don't understand what you are trying to do. Regards, Pascal Le 06/12/2012 11:47, Brian Feeny a écrit : I would like to take the values of observations and map them to a new index. I am not sure how to accomplish this. The result would look like so: x[1,2

[R] Assignment of values with different indexes

2012-12-05 Thread Brian Feeny
I would like to take the values of observations and map them to a new index. I am not sure how to accomplish this. The result would look like so: x[1,2,3,4,5,6,7,8,9,10] becomes y[2,4,6,8,10,12,14,16,18,20] The "newindex" would not necessarily be this sequence, but a sequence I have stored i