[R] Number of characters per line
Gavin Simpson
gavin.simpson at ucl.ac.uk
Fri Oct 8 19:05:04 CEST 2004
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.
%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%
More information about the R-help
mailing list