Displaying 1 result from an estimated 1 matches for "logdji".
2005 May 20
3
Reading Numeric Data -- Trivial Question
...contains the log
of daily DJI returns and simply plot a histogram of it.
The data I have is in a text file format, on each line a number
represents the log of the returns of one day.
I have problems in reading this in a vector numeric format.
If I try
retr<- as.numeric(read.table("logDJI.TXT", header=FALSE, sep="", dec="." ));
I get:
" Error in as.double.default(read.table("logDJIm.TXT", header = FALSE,
sep = "", :
(list) object cannot be coerced to 'double'"
and when I try to plot:
plot(density(retr, widt...