[R] mathematical notation in R

Steven McKinney smckinney at bccrc.ca
Thu Jul 23 03:03:18 CEST 2009


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-bounces at r-project.org [mailto:r-help-bounces at r-
> project.org] On Behalf Of Mary A. Marion
> Sent: Wednesday, July 22, 2009 8:00 PM
> To: r-help at 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 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