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] On Behalf Of Mary A. Marion > Sent: Wednesday, July 22, 2009 8:00 PM > To: 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 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.