Hi Mary,

Something such as

> plot(1,1)
> title(expression(paste("LBAuo = -", infinity)))

Is this what you're after?

Best

Steve McKinney

________________________________________
From: Mary A. Marion [mms...@comcast.net]
Sent: July 23, 2009 4:23 PM
To: Steven McKinney
Subject: Re: [R] mathematical notation in R

Hi,

LBAuo <- -Inf was helpful but what I really would like to do is use the "Greek" 
expression for
infinity that is the number 8 on its side.

syntax   meaning


infinity        infinity symbol
was found using ?plotmath but I don't know how to use this information.  Any 
ideas?

Thank you.

Sincerely,
Mary A. Marion


Steven McKinney wrote:

Does this approach what you're looking for?
See
?is.finite

for more info



LBAuo<- -9999
LBAuo


[1] -9999


if (LBAuo <= -9999) LBAuo <- -Inf
LBAuo


[1] -Inf



HTH
Steven McKinney



-----Original Message-----
From: r-help-boun...@r-project.org<mailto:r-help-boun...@r-project.org> 
[mailto:r-help-boun...@r-
project.org] On Behalf Of Mary A. Marion
Sent: Wednesday, July 22, 2009 8:00 PM
To: r-help@r-project.org<mailto:r-help@r-project.org>
Subject: [R] mathematical notation in R

Hello,

I have an R function which includes the statement LBAuo<- -9999.
Rather
than printing out -9999 I want it to print out - infinity.
As of yet I have not been able to do that.  I am not in a graphics
window just outputting a set of variables.  Can you help?
Thanks.

Sincerely,
Mary A. Marion

______________________________________________
R-help@r-project.org<mailto: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