Skip to content
Prev 40355 / 63424 Next

NaN, Inf to NA

On May 27, 2011, at 10:33 AM, Duncan Murdoch wrote:

            
I snipped some of the older content and added Bill.

It seems to me that unless the 'x' argument is both atomic and numeric, these functions really don't have much utility, if you are going to implement standard default behavior and more rigorous error checking. 

So I would support adding an error message if both conditions are not passed, rather than an unpredictable result, which an unsuspecting useR might not catch.

I agree that the non-default methods should be deprecated.

Regards,

Marc