search for: closep

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

Did you mean: close
2008 Dec 14
1
how to convert factors to numbers
...hen I use read.table, it treats all of the data as "factors" and I do not know how to treat the data as numbers: > spy<-read.table("c:\\StockData\\SPY.txt") > attach(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 fa...