I have an array that I wish to split using ” ” as the delimiter. I am using the Base.split function, but there seems to be an error coming up. The array in question (poly) is as follows:
<code>Any["-39.242054 -62.0887375 -39.9433022 -62.5120087 -40.4574928 -61.6601334 -39.7562447 -61.2368622 -39.242054 -62.0887375"]
</code>
<code>Any["-39.242054 -62.0887375 -39.9433022 -62.5120087 -40.4574928 -61.6601334 -39.7562447 -61.2368622 -39.242054 -62.0887375"]
</code>
Any["-39.242054 -62.0887375 -39.9433022 -62.5120087 -40.4574928 -61.6601334 -39.7562447 -61.2368622 -39.242054 -62.0887375"]
The code is as follows:
<code>coords = split(poly, " ")
</code>
<code>coords = split(poly, " ")
</code>
coords = split(poly, " ")
The error is:
<code>ERROR: LoadError: MethodError: no method matching split(::Vector{Any}, ::String)
</code>
<code>ERROR: LoadError: MethodError: no method matching split(::Vector{Any}, ::String)
</code>
ERROR: LoadError: MethodError: no method matching split(::Vector{Any}, ::String)
I suppose I cannot use this on the data structure type of poly. What are other methods which I can check out?