Remove leading brackets in print?
Something like:
cat(3, "\n")
3 Is this what you are looking for?
On Tue, 29 Apr 2003, R A F wrote:
Date: Tue, 29 Apr 2003 16:42:06 +0000 From: R A F <raf1729 at hotmail.com> To: r-help at stat.math.ethz.ch Cc: raf1729 at hotmail.com Subject: [R] Remove leading brackets in print? 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!
______________________________________________ R-help at stat.math.ethz.ch mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help
Cheers, Kevin ------------------------------------------------------------------------------ /* Time is the greatest teacher, unfortunately it kills its students */ -- Ko-Kang Kevin Wang Master of Science (MSc) Student SLC Tutor and Lab Demonstrator Department of Statistics University of Auckland New Zealand Homepage: http://www.stat.auckland.ac.nz/~kwan022 Ph: 373-7599 x88475 (City) x88480 (Tamaki)