[R] Problem in log

R. Michael Weylandt michael.weylandt at gmail.com
Tue Nov 29 23:07:57 CET 2011

Do you mean remove the NaNs? Try na.omit() or complete.cases() or many
other options.

If you mean you want the complex log, try



On Tue, Nov 29, 2011 at 5:02 PM, Gyanendra Pokharel
<gyanendra.pokharel at gmail.com> wrote:
> Hi all I have a function of log defined by y = log(1- exp(-a)), when
> exp(-a) is greater, 1, it produce NaN. How can I remove this in R?
>        [[alternative HTML version deleted]]
> ______________________________________________
> 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