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.
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
tofesi at web.de wrote:> 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 >?options which states... 'width': controls the number of characters on a line. You may want to change this if you re-size the window that R is running in. Valid values are 10...10000 with default normally 80. (The valid values are in file 'Print.h' and can be changed by re-compiling R.) Gav -- %~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~% Gavin Simpson [T] +44 (0)20 7679 5522 ENSIS Research Fellow [F] +44 (0)20 7679 7565 ENSIS Ltd. & ECRC [E] gavin.simpson at ucl.ac.uk UCL Department of Geography [W] http://www.ucl.ac.uk/~ucfagls/cv/ 26 Bedford Way [W] http://www.ucl.ac.uk/~ucfagls/ London. WC1H 0AP. %~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%