Dear readers,

I need to prevent the output of very large
integers in scientific format.
So I use format, but now the integers in the
resulting tab delimited output file are padded.

I tried justify="none" or "left", width=0 but nothing
helps.

1\tA\t10000\t10000
2\ta\t    1\t1
        ^^^

thank you very much for your suggestions,

ido

> vals <- c(10000,1)
> df <- data.frame(c("A","b"),format(vals),vals)
> write.table(df,"test.tab",sep="\t",header=FALSE,quote=FALSE)
> df <- data.frame(c("A","b"),format(vals,just="none"),vals)

______________________________________________
R-help@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.

Reply via email to