How to find min/max by column from a matrix with missing values?

minX = [ minimum(skipmissing(X[:,col])) for col in 1:size(X)[2] ]

Drawback: returns a

2-element Array{Float64,1}

and not a

1×2 Array{Float64,2}

as expected. But maybe this doesn’t matter.

1 Like