You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Retun the values of the array da of type Array{Union{T,Missing},N} (potentially containing missing values) as a regular Julia array a of the same element type and checks that no missing values are present.
a = nomissing(da,value)
Retun the values of the array da of type Array{Union{T,Missing},N} as a regular Julia array a by replacing all missing value by value.
I'm not sure 'checks that no missing values are present.' is clear. Maybe we should say return an error if the array contains at least one missing value
I corrected the docs of NCDatasets, thanks! But I prefer to keep the function nomissing for now because it handles better the case where the data array is Float32 and the user uses a Float64 NaN.
The end-goal, is to be able to use missing everywhere (and in PyPlot in particular, JuliaPy/PyCall.jl#616)
julia> nomissing([1.0f0,2.0f0,missing],NaN)
3-element Array{Float32,1}:
1.0
2.0
NaN
julia> coalesce.([1.0f0,2.0f0,missing],NaN)
3-element Array{AbstractFloat,1}:
1.0f0
2.0f0
NaN
In the docstring of
nomissing
:Retun → Return
arrays contains missing values...
→
array contains missing values...
Also note that the function
coalesce
is available inBase
, we could use itThe text was updated successfully, but these errors were encountered: