[R] Remove leading brackets in print?

R A F raf1729 at hotmail.com
Tue Apr 29 18:42:06 CEST 2003


Hi, I can't seem to get an answer for this by searching through the
R-help archives:  How does one remove leading brackets in print?

For example,
>print( 3 )
>[1] 3

Would it be possible to get rid of the "[1]"?

Of course the effect is the same without "print", as in,
>3
>[1] 3
but I would only be interested in omitting brackets in printing, if
that's possible.

Thanks very much!



More information about the R-help mailing list