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 <mrzun...@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@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.

______________________________________________
R-help@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.

Reply via email to