Hi Manish,

Try

> cat(sqrt(2),"\n")
1.414214

See ?cat for more information.

HTH,
Jorge.-


On Mon, Mar 19, 2012 at 10:42 PM, Manish Gupta <> wrote:

> How to avoid [1] in output?
>
> print(sqrt(2),row.names=NULL)
> *[1] *1.414214
>
> How to avoid it?
>
>  print(sqrt(2),row.names=NULL)
> 1.414214
> Regards
>
> --
> View this message in context:
> http://r.789695.n4.nabble.com/Output-formatting-in-Latex-and-R-tp4483631p4487480.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.
>

        [[alternative HTML version deleted]]

______________________________________________
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