[R] Eliminating "[...]" from print
(Ted Harding)
Ted.Harding at manchester.ac.uk
Mon Jun 2 13:07:48 CEST 2008
On 02-Jun-08 10:33:19, LANGOHR, KLAUS wrote:
> Ted,
> You may also want to try the function report of the npmc package.
> For example,
>
> report("Have a nice day!", style="underline", char="*")
>
> gives
>
> Have a nice day!
> ****************
>
> Regards,
> Klaus.
Thanks, Klaus! The trick in that case, from the code in report.R
in the npmc package, is to constrict the ouput as a 1-column
matrix 'm', whose rows are the intended lines of text, and the
set
rownames(m) <- ""
colnames(m) <- ""
which indeed does eliminate the "[1]" etc. Interesting ... !
Best wishes,
Ted.
--------------------------------------------------------------------
E-Mail: (Ted Harding) <Ted.Harding at manchester.ac.uk>
Fax-to-email: +44 (0)870 094 0861
Date: 02-Jun-08 Time: 12:07:45
------------------------------ XFMail ------------------------------
More information about the R-help
mailing list