Re: [R] Create a new column based on values in two other columns

2013-09-08 Thread arun
age - From: Ira Sharenow To: r-help@r-project.org Cc: Sent: Saturday, September 7, 2013 4:11 PM Subject: [R] Create a new column based on values in two other columns I am trying to add a column to a data frame. Each day for each stock I make a prediction for a future date. Then I need to comp

[R] Create a new column based on values in two other columns

2013-09-07 Thread Ira Sharenow
I am trying to add a column to a data frame. Each day for each stock I make a prediction for a future date. Then I need to compare my predictions to the actual values. So looking at the first row of data: For Stock A on 2011-01-01 I predicted that on 2011-01-02 the price would be 10.25. Now I