[R] Get rid of space padding

Peter Dalgaard p.dalgaard at biostat.ku.dk
Thu Dec 23 01:37:00 CET 2004

Gene Cutler <gcutler at amgen.com> writes:

> I'm currently using the below function from some library (MASS?) for
> writing my data out to file.  I'm using it instead of plain old "write"
> because it does buffering.  The problem that I'm having is that the
> numbers are space padded, but I need true tab-delineated files.  It
> looks like the spaces are coming from 'format', but I don't see
> an option for format to not pad numbers, the closest I see has to do
> with stripping spaces from strings.  Am I missing something obvious?

write.table(), maybe?

   O__  ---- Peter Dalgaard             Blegdamsvej 3  
  c/ /'_ --- Dept. of Biostatistics     2200 Cph. N   
 (*) \(*) -- University of Copenhagen   Denmark      Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk)             FAX: (+45) 35327907

More information about the R-help mailing list