Re: [R] dimnames

From: Henrique Dallazuanna <wwwhsd_at_gmail.com>
Date: Wed, 13 Feb 2008 11:19:57 -0200

Try this:

write.table(XX,"XX.txt",quote=FALSE,sep="\t", row.names = FALSE)

On 13/02/2008, Roberto Olivares Hernandez <roh_at_bio.dtu.dk> wrote:
> Hi,
>
> I used the write.table function to save data in txt file, and this is the output:
>
>
> V1 V2 V3 V4
> 1 YAL005C 21 14 11
> 2 YAL007C 2 1 4
> 3 YAL012W 8 16 3
> 4 YAL016W 24 23 23
> 5 YAL019W 3 3 2
> 6 YAL020C 2 4 2
> 7 YAL021C 7 5 5
> 8 YAL022C 3 1 2
>
>
> but I need to remove the dimnames (first column)
>
> I tried to use dimnames function to remove it and then save it, but still, the output is the same
>
> These are the command lines,
>
> XX #matrix
> dimnames(XX)<-NULL
> write.table(XX,"XX.txt",quote=FALSE,sep="\t", row.names = FALSE)
>
>
>
> Thanks in advance
> Roberto
>
>
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help_at_r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>

-- 
Henrique Dallazuanna
Curitiba-Paraná-Brasil
25° 25' 40" S 49° 16' 22" O

______________________________________________
R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Received on Wed 13 Feb 2008 - 13:24:21 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Wed 13 Feb 2008 - 13:30:14 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive