Re: [R] exrpression(), double subscript

From: Uwe Ligges <ligges_at_statistik.tu-dortmund.de>
Date: Sat, 24 May 2008 16:42:00 +0200

Afshartous, David wrote:
> All,
>
> The first use of expression produces a double subscript while the second does not.
> I searched in ?plotmath and the archives and didn't find anything. I'm sure I'm missing
> something obvious but can't seem to find. any suggestions much appreciated.
>
> Cheers,
> David
>
>
> plot(1:10, 1:10)
> text(par("usr")[1] - .5, 5, adj = 1, labels = expression(hat(b)[11]), xpd = TRUE)
> text(par("usr")[1] - .5, 5, adj = 1, labels = expression(hat(b)[0*i]), xpd = TRUE)

If you want "0i" as subscript, use

   expression(hat(b)[0*i])

(0i is complex and represented by 0+0i afterwards)

Or does "double" mean you want i as subscript of 0? Then just try

   expression(hat(b)[0[i]])

Uwe Ligges
>
> ------------------------------------------------------------------------
>
> ______________________________________________
> 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.



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. Received on Sat 24 May 2008 - 15:17:05 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Sat 24 May 2008 - 18:30:43 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive