Convenience functions for working with missing values in Julia
Installation: at the Julia REPL, import Pkg; Pkg.add("Missings")
Maintenance: Missings is maintained collectively by the JuliaData collaborators. Responsiveness to pull requests and issues can vary, depending on the availability of key collaborators.
Starting from Julia 1.0, the Missing type and basic related functionality are part of the language.
For documentation see the Julia manual section on missing values.
This package provides additional functionality for working with missing values:
- nonmissingtypeto extract- Tfrom a- Union{T, Missing}type
- allowmissingand- disallowmissingto convert between- Vector{T}and- Vector{Union{T, Missing}}
- passmissingto wrap a function so that it returns- missingif any of its positional arguments is- missing
- levelsto get the unique values in a vector excluding- missingand in their preferred order
- Missings.replaceto wrap a collection in a (possibly indexable) iterator replacing- missingwith another value
- Missings.failto wrap a collection in a (possibly indexable) iterator throwing an error if- missingis encountered
- skipmissingsto loop through a collection of iterators excluding indices where any iterators are- missing
- missingsmallest(f)to create a partial order function that treats- missingas the smallest value and otherwise behaves like- f
- missingsmallest: the standard- islessfunction modified to treat- missingas the smallest value rather than the largest one
Contributions are welcome, as are feature requests and suggestions. Please open an issue if you encounter any problems or would just like to ask a question.