[R] Number of characters per line

John Fox jfox at mcmaster.ca
Fri Oct 8 18:57:27 CEST 2004


Dear Tobi,

You can use options(width=n.of.characters).

I hope this helps,
 John

> -----Original Message-----
> From: r-help-bounces at stat.math.ethz.ch 
> [mailto:r-help-bounces at stat.math.ethz.ch] On Behalf Of tofesi at web.de
> Sent: Friday, October 08, 2004 11:36 AM
> To: r-help at stat.math.ethz.ch
> Subject: [R] Number of characters per line
> 
> Content-Type: text/plain; charset="iso-8859-1"
> Content-Transfer-Encoding: 7bit
> Received-SPF: none (hypatia: domain of tofesi at web.de does not 
> designate permitted sender hosts)
> X-Virus-Scanned: by amavisd-new at stat.math.ethz.ch
> X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on 
> hypatia.math.ethz.ch
> X-Spam-Level: *
> X-Spam-Status: No, hits=1.9 required=5.0 
> tests=AWL,NO_REAL_NAME,RCVD_IN_BL_SPAMCOP_NET autolearn=no 
> version=2.63
> 
> Hi all,
> 
> how can I tell R after how many characters it should do a 
> line break in its output?
> For example, instead of this output
> 
> [1] 0.692927557 0.016564402 0.053789695 0.457274207 
> 0.320261162 0.343467947 [7] 0.289319881 0.820783841 
> 0.737314682 0.305060765 0.009107208 0.271747209
> 
> I'd like to have that output:
> 
> [1] 0.692927557 0.016564402 0.053789695 0.457274207 [5] 
> 0.320261162 0.343467947 0.289319881 0.820783841 [9] 
> 0.737314682 0.305060765 0.009107208 0.271747209
> 
> Running R 1.9.1 (2004-06-21),
> ESS 5.1.21 from within XEmacs 21.4.15 (April 2004), Suse 9.1
> 
> I've tried to find out in FAQ and R-help archive, without 
> success, so thanks a lot in advance for any help.
>   Tobi
> 
> __________________________________________________________
> Mit WEB.DE FreePhone mit hoechster Qualitaet ab 0 Ct./Min.
> 
> ______________________________________________
> 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




More information about the R-help mailing list