would vec() also work for you? It's supposed to be pretty fast.
julia> a = rand(4,4)
4x4 Array{Float64,2}:
0.794534 0.618345 0.941777 0.449794
0.0615869 0.51361 0.141349 0.874955
0.504186 0.0687788 0.64149 0.863215
0.485404 0.193311 0.766789 0.0304138
julia> vec(a)
16-element Array{Float64,1}:
0.794534
0.0615869
0.504186
0.485404
0.618345
0.51361
0.0687788
0.193311
0.941777
0.141349
0.64149
0.766789
0.449794
0.874955
0.863215
0.0304138
On Thursday, September 10, 2015 at 5:38:35 AM UTC-7, Charles Santana wrote:
>
> Mauro, you are a genius! :)
>
> Thanks a lot! It worked perfectly!
>
> Best,
>
> Charles
>
> On 10 September 2015 at 14:30, Mauro <[email protected] <javascript:>>
> wrote:
>
>> >>> wc = wordcloud(x = corpus)
>> > ERROR: TypeError: typeassert: expected AbstractArray{T,1}, got
>> Array{Any,2}
>> >
>> > Do you have any suggestion about how to convert an Array{Any,2} to an
>> > AbstractVector? Or how to read a text file to an AbstractVector
>> variable?
>>
>> Have you tried to just flatten the array:
>>
>> wc = wordcloud(x = corpus[:])
>>
>
>
>
> --
> Um axé! :)
>
> --
> Charles Novaes de Santana, PhD
> http://www.imedea.uib-csic.es/~charles
>