[R] Farmating printed Numbers and Text

Andrew Robinson andrewr at uidaho.edu
Tue Dec 14 01:51:51 CET 2004


Or ?sprintf

Andrew

On Mon, Dec 13, 2004 at 04:41:13PM -0800, Berton Gunter wrote:
> 
> Well..., since no one has responded, try ?format  
> 
> -- Bert Gunter
> Genentech Non-Clinical Statistics
> South San Francisco, CA
>  
> "The business of the statistician is to catalyze the scientific learning
> process."  - George E. P. Box
>  
>  
> 
> > -----Original Message-----
> > From: r-help-bounces at stat.math.ethz.ch 
> > [mailto:r-help-bounces at stat.math.ethz.ch] On Behalf Of Andreas
> > Sent: Monday, December 13, 2004 3:42 PM
> > To: r-help at stat.math.ethz.ch
> > Subject: [R] Farmating printed Numbers and Text
> > 
> > Hello,
> > 
> > is there any function to print (using "cat" or "print" etc.) 
> > a table of
> > values row per row in a exact order, even if the value has 3 
> > digit and in
> > the next row eg. 5 digits? This means I want to print a 
> > number with 3 digits
> > with 2 spaces in front and a number with 4 digits only with 
> > one space in
> > front.
> > 
> > regards Andreas
> > 
> > ______________________________________________
> > R-help at stat.math.ethz.ch mailing list
> > https://stat.ethz.ch/mailman/listinfo/r-help
> > PLEASE do read the posting guide! 
> > http://www.R-project.org/posting-guide.html
> >
> 
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

-- 
Andrew Robinson                      Ph: 208 885 7115
Department of Forest Resources       Fa: 208 885 6226
University of Idaho                  E : andrewr at uidaho.edu
PO Box 441133                        W : http://www.uidaho.edu/~andrewr
Moscow ID 83843                      Or: http://www.biometrics.uidaho.edu
No statement above necessarily represents my employer's opinion.




More information about the R-help mailing list