Displaying 1 result from an estimated 1 matches for "p_diario".
Did you mean:
p_diarios
2012 Mar 23
5
How to convert factors to numbers
...am relatively new to using R.
The text file contains the date and price . I want to read and manipulate
the data in R. However, when I use read.table, it treats all of the data as
"factors" and I do not know how to treat the data as numbers:
http://r.789695.n4.nabble.com/file/n4498828/p_diarios.txt p_diarios.txt
setwd ("C:\\Users\\Sandro\\Dropbox\\R")
data.precios <- read.table ("p_diarios.txt ", header =TRUE
, dec=",", sep="\t")
Time <- data.precios$time # 01.02.2004 - 12.05.2011
Price <- data.precios$price # Historical spot price
log.P...