Hi there,

I'm using DataFrames package and having problems using NA on Array{Any}. 
Here is the thing:

julia> a = [true 2 "hi"]
1x3 Array{Any,2}:
 true  2  "hi"

That's expected, Julia had no way to promote this elements to a single 
concrete type, so I got an Array{Any}. Now, if I try:

julia> a[3] = NA
1x3 Array{Any,2}:
 true  2  NA

Thats also expected! NA is of NAType, that is a subtype of Any (as any 
other type). But if I try:

julia> a = [true 2 NA]
ERROR: no method convert(Type{Int64}, NAtype)
 in setindex! at multidimensional.jl:63
 in cat at abstractarray.jl:625
 in hcat at abstractarray.jl:632

That's unexpected. What am I missing?

Thanks and sorry about my poor English.

Reply via email to