I’d like to store a table as a mixed-type numeric array - just ints and floats.
If I use [brackets] to initialize a vector of numeric values, Julia promotes the ints to floats and returns an array of floats. If I include a non-numeric type (e.g. string) as the last value and then pop! the vector (or subset it to a the index range of numeric-only values), it preserves the remaining numbers in an Any-type vector. Is there a way to do this without including then removing a non-numeric value?
v = [1.5,1,"foo"]; pop!(v); # v is now a length-2 Vector{Any}
v = [1.5,1]; # v here is a Vector{Float64}
Apologies in advance if this has already been answered. I did do a search before posting.