Re: [R] Help with printing fixed width

2009-10-09 Thread Jim Lemon
On 10/09/2009 11:36 PM, sahil seth wrote: Hello R users, I am writing a summary() for a custom class, and am to display the integers right justified, Say where x is the vector with integers, I am using the following: cat("\t",format(x),"\t"...other columns) this way I am trying to pass the forma

Re: [R] Help with printing fixed width

2009-10-09 Thread jim holtman
try using 'sprintf' On Fri, Oct 9, 2009 at 8:36 AM, sahil seth wrote: > Hello R users, > I am writing a summary() for a custom class, and am to display the integers > right justified, > Say where x is the vector with integers, I am using the following: > cat("\t",format(x),"\t"...other columns) >

[R] Help with printing fixed width

2009-10-09 Thread sahil seth
Hello R users, I am writing a summary() for a custom class, and am to display the integers right justified, Say where x is the vector with integers, I am using the following: cat("\t",format(x),"\t"...other columns) this way I am trying to pass the format(x), to the cat function to display it, but