RE: [R] duplicate row importing issue

From: Liaw, Andy <andy_liaw_at_merck.com>
Date: Thu 15 Jul 2004 - 03:19:42 EST


Or just read.table(..., header=FALSE, skip=1)

Andy

> From: F Duan
>
> How about you delete the first row (column names) and then use
> "header=FALSE" in read.table()?
>
> Frank
>
> -----Original Message-----
> From: r-help-bounces@stat.math.ethz.ch
> [mailto:r-help-bounces@stat.math.ethz.ch] On Behalf Of Herman, David
> (NIH/NIMH)
> Sent: Wednesday, July 14, 2004 11:13
> To: 'r-help@stat.math.ethz.ch'
> Subject: [R] duplicate row importing issue
>
> Hello,
> I'm simply trying to import a .txt file that has
> a column of
> about 30,000 pts. I found the file, but I'm getting an error:
> > m <- read.table(choose.files())
> Error in "row.names<-.data.frame"(`*tmp*`, value = row.names) :
> duplicate row.names are not allowed
>
> Any help with getting around this?
>
> I really appreciate all the help.
> Thanks
> dave
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help@stat.math.ethz.ch 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
>
> ______________________________________________
> R-help@stat.math.ethz.ch 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
>
>



R-help@stat.math.ethz.ch 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 Received on Thu Jul 15 03:42:50 2004

This archive was generated by hypermail 2.1.8 : Wed 03 Nov 2004 - 22:54:58 EST