s-news
[Top] [All Lists]

formatting using write.table

To: <s-news@wubios.wustl.edu>
Subject: formatting using write.table
From: "Leeds, Mark" <mleeds@mlp.com>
Date: Tue, 26 Aug 2003 11:23:06 -0400
Thread-index: AcNr5fNJrdHYtjjgR7yN3fn2pR7yow==
Thread-topic: formatting using write.table
this is a formatting question.
 
i have some variables called
 
dollaramount_round(invalue1,0)
currencyamount_round(invalue2,0)
ticker1shares_round(invalue3,0)
ticker2shares_round(invalue4,0)
 
so, they all have no decimals.
 
then i have the following statements
 
tempframe_data.frame(cbind(dollarAmount,currencyAmount,ticker1Shares,ticker2Shares)
write.table(tempframe,file=sigfile,sep = "\t",append=T,quote.strings=F,dimnames.write=F)
 
these statements are in a loop but when the printing is done, i get what seem to
be random cases where things are not lined up, for example
 
59999    7199880   22570    12307
 
149057  17886840        42186       27905
 
since i am using the sep= "\t" option, shouldn't the fields get lined up ?
granted, maybe they should be a little off because one number is longer than
the other but not off to the degree as shown above ?
 
i saw something called justify.format as an option in the help for write.table
so maybe i need to use this instead but i wasn't sure how to use it.
 
 
thanks.
 
 
                                       
<Prev in Thread] Current Thread [Next in Thread>
  • formatting using write.table, Leeds, Mark <=