[R] min(NA,"bla") != min("bla", NA)
Duncan Murdoch
murdoch.duncan at gmail.com
Fri Sep 27 13:03:44 CEST 2013
On 13-09-27 6:00 AM, Magnus Thor Torfason wrote:
> Thanks for putting together such a quick fix! Unfortunately the policy
> for the system that I'm working on doesn't allow unreleased versions, so
> I'll have to work around this for a little bit longer. But I'll ask my
> sysadmins to install 3.0.3 as soon as it gets released.
As a workaround, it looked to me as though it would always be safe to
use the single argument version, i.e. the fact that min(c("bla", NA))
got it right was not just a fluke. It's a little bit less efficient
than using two arguments, but probably not to the extent that you'd notice.
Duncan Murdoch
>
> Best,
> Magnus
>
> On 9/27/2013 1:38 AM, Duncan Murdoch wrote:
>> Nice catch. The good news is that min() works in the C locale; the bad
>> news is that max() doesn't. But both work after today's patch.
>>
>> Duncan Murdoch
>
> ______________________________________________
> 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