Re: [R] Options for print()

From: baptiste auguie <baptiste.auguie_at_googlemail.com>
Date: Thu, 05 May 2011 20:45:49 +1200

Hi,

Try this,

cat(format("The TITLE", width=80, justify="centre"))

HTH, baptiste

On 5 May 2011 19:28, Dan Abner <dan.abner99_at_gmail.com> wrote:
> Hello everyone,
>
> I have a few questions about the print() fn:
>
> 1) I have the following code that does not center the character string:
>
> print("The TITLE",quote=FALSE,justify="center")
>
> 2) How can I get R to not print the leading [1], etc.  when using print()?
>
> (Sorry, I don't know what the leading [1] is called. I tried looking it up
> in "An Introduction", but could not find it).
>
> Any help is greatly appreciated!
>
> Dan
>
>        [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help_at_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.
>



R-help_at_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. Received on Thu 05 May 2011 - 08:48:31 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 05 May 2011 - 09:30:05 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive