From: Alex K <alex.j.k_at_gmail.com>

Date: Sat 21 May 2005 - 05:22:23 EST

R-help@stat.math.ethz.ch mailing list

https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Sat May 21 05:38:02 2005

Date: Sat 21 May 2005 - 05:22:23 EST

Hello,

I am very new to R, and this is certainly and uber-newby question:

I have problems in reading this in a vector numeric format.

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'"

plot(density(retr, width=.004), type="l", xlab="y", ylab="pdf");

"Error in density(retr, width = 0.004) : argument 'x' must be numeric"

retr<- as.data.frame(read.table("logDJI.TXT", header=FALSE, sep="", dec="." ));

I get no reading or conversion error, but I get the same error when I try to plot as above.

R-help@stat.math.ethz.ch mailing list

https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Sat May 21 05:38:02 2005

*
This archive was generated by hypermail 2.1.8
: Fri 03 Mar 2006 - 03:31:59 EST
*