[R] Output data frame using write.table
jholtman at gmail.com
Wed Jul 6 01:13:10 CEST 2011
Use 'write.csv' and then use EXCEL as the way of formatting the output
in the way that you like it. Otherwise you want use 'sprintf' to
specify how you want the formatting done.
On Tue, Jul 5, 2011 at 1:17 PM, Bansal, Vikas <vikas.bansal at kcl.ac.uk> wrote:
> Dear all,
> I have a data frame whose name is m1.
> I want to write this data frame in text file as output.I am using this code-
> write.table(m1, file = "kas.txt", append = FALSE,row.names=F,quote=F,sep="\t")
> When I am opening my kas.txt file,the column names are not coming exactly above the column.
> What should I do.Please help me.
> Thanking you,
> Warm Regards
> Vikas Bansal
> Msc Bioinformatics
> Kings College London
> R-help at r-project.org mailing list
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
Data Munger Guru
What is the problem that you are trying to solve?
More information about the R-help