search for: changefromopen

Displaying 1 result from an estimated 1 matches for "changefromopen".

2008 Dec 14
1
how to convert factors to numbers
...tach(spy) > names(spy)<-c("QDate","OpenP","HighP","LowP","CloseP","Vol","AdjP") > spy[1,] QDate OpenP HighP LowP CloseP Vol AdjP 1 12/14/2006, 141.86, 143.24, 141.84, 143.12, 64755200, 138.34 > ChangeFromOpen<-spy[1,5]-spy[1,2] Warning message: In Ops.factor(spy[1, 5], spy[1, 2]) : - not meaningful for factors > As you can see, I cannot calculate the difference between the closing price and the opening price, (much less compute averages, etc). This is clearly a "newbie" problem. In...