Hello and thanks for your reply

Hopefully, my answer arrives at the correct place like that (if not, I am sorry for 
bothering you, but please let me know...)

To sum up my procedure (sp is exactly the same thing as spr, I had just tinkered with
the names while trying sth. to solve this problem)

> sp<-read.table("c:/ratsdata/sp3.txt", col.names="sp")
> xd<-density(sp)
Error in density(sp) : argument must be numeric

The suggested remedies yield the following
> str(sp)
`data.frame':   195 obs. of  1 variable:
 $ sp: int  11 10 10 12 25 22 12 23 13 15 ...
> xd<-density(as.numeric(sp))
Error in as.double.default(sp) : (list) object cannot be coerced to double

Hence, it does not seem to be a factor. Declaring it as numeric gives another error
message, on which I haven't yet found any help in Google/the archive.

Yours sincerely
--
Christoph Hanck
Wissenschaftliche Hilfskraft
Lehrstuhl für Empirische Wirtschaftsforschung, Prof. Dr. Wilfling
http://www.wiwi.uni-muenster.de/~05/
WWU Muenster
Tel.: +49-251-83 25043
--
Christoph Hanck
Wissenschaftliche Hilfskraft
Lehrstuhl für Empirische Wirtschaftsforschung, Prof. Dr. Wilfling
http://www.wiwi.uni-muenster.de/~05/
WWU Muenster
Tel.: +49-251-83 25043
eMail: [EMAIL PROTECTED]


        [[alternative HTML version deleted]]

______________________________________________
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Reply via email to