Julia: Support `isapprox` with `missing` values

Created on 12 Jul 2018  ·  1Comment  ·  Source: JuliaLang/julia

Currently calling isapprox with missing results in a MethodError:

julia> isapprox(missing, missing)
ERROR: MethodError: no method matching isapprox(::Missing, ::Missing)

It's also worth noting that if missing values will be supported by isapprox we may want to also introduce a missings keyword to the function to mirror the nans keyword:

The keyword argument nans determines whether or not NaN values are considered equal (defaults to false)

missing data

Most helpful comment

It seems like if either argument is missing then the answer should be missing, which matches ==.

>All comments

It seems like if either argument is missing then the answer should be missing, which matches ==.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

felixrehren picture felixrehren  ·  3Comments

i-apellaniz picture i-apellaniz  ·  3Comments

Keno picture Keno  ·  3Comments

ararslan picture ararslan  ·  3Comments

StefanKarpinski picture StefanKarpinski  ·  3Comments