[R] row.names - problem with vers. 1.4.1

Herr.Alfred@gmx.net Herr.Alfred at gmx.net
Fri Aug 23 09:07:11 CEST 2002


Hi,

need a little help:

I want to handle a file with a first column like this:
...
27.10.98	
28.10.98	
29.10.98	
...

In vers. 1.5.1 I can use a statement like:

# load daily
prices
prices<-as.matrix(read.table(paste(path,"prices",date,".txt",sep=""),row.names=1,header=T)) 

In ves. 1.4.1 R generates an ERROR:
Error in "row.names<-.data.frame"(*tmp*, value = row.names) : 
        duplicate row.names are not allowed

For a reason too complex to explain I HAVE TO use 1.4.1! Can anyone tell me
how to solve this problem in 1.4.1?

TIA,
Alfred.

-- 



-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list