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:
nonmissingtype
to extractT
from aUnion{T, Missing}
typeallowmissing
anddisallowmissing
to convert betweenVector{T}
andVector{Union{T, Missing}}
passmissing
to wrap a function so that it returnsmissing
if any of its positional arguments ismissing
levels
to get the unique values in a vector excludingmissing
and in their preferred orderMissings.replace
to wrap a collection in a (possibly indexable) iterator replacingmissing
with another valueMissings.fail
to wrap a collection in a (possibly indexable) iterator throwing an error ifmissing
is encounteredskipmissings
to loop through a collection of iterators excluding indices where any iterators aremissing
missingsmallest(f)
to create a partial order function that treatsmissing
as the smallest value and otherwise behaves likef
missingsmallest
: the standardisless
function modified to treatmissing
as 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.