Missings.jl
Missings.jl copied to clipboard
Missing value support for Julia
Missings.jl
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.
Project Status
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}
type -
allowmissing
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 order -
Missings.replace
to wrap a collection in a (possibly indexable) iterator replacingmissing
with another value -
Missings.fail
to wrap a collection in a (possibly indexable) iterator throwing an error ifmissing
is encountered -
skipmissings
to loop through a collection of iterators excluding indices where any iterators aremissing
Contributing and Questions
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.