[R] erasing "[1]"

R. Michael Weylandt michael.weylandt at gmail.com
Tue Mar 13 01:07:17 CET 2012


You can write your own print method or do it using cat:

cat(a, "\n")

Michael

On Mon, Mar 12, 2012 at 6:49 PM, mrzung <mrzung46 at gmail.com> wrote:
> hi,
> is there any way to erase the term "[1]"?
>
> for example,
>
>> a<-3+2
>> a
> *[1]*  5
>
> the term [1] in front of number 5.
>
> is there any way?
>
> --
> View this message in context: http://r.789695.n4.nabble.com/erasing-1-tp4467628p4467628.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.



More information about the R-help mailing list