I see the message: "file entry \"\" cannot be converted to Float64"
This is because you are trying to read it as a Float64 matrix and there are 
missing values in the input that can not be represented with Float64.

If I don't specify the type, I get:

julia> readdlm("/tmp/x.csv", ',')
2×3 Array{Any,2}:
 1  2   ""
 5  2  4  

Empty lines are ignored.

On Monday, June 6, 2016 at 3:46:18 AM UTC+5:30, Anonymous wrote:
>
> So I have a BysteString vector A, containing a bunch of byte strings of 
> varying lengths of the form:
>
> "1,2,\n"
> "\n"
> "5,2,4\n"
>
> etc. 
>
> What I have set up is to do 
>
> [vec(readdlm(IOBuffer(line), ',', Float64)) for line in A]
>
> However because as you see above the second line is empty except for the 
> newline escape character, it throws an error.  What I would like it to do 
> instead is simply return an empty array Float64[] for that line.  That 
> seems like what it *should* do, and I'm not sure why it doesn't.  Is 
> there any way I can make it behave like I want it to?
>

Reply via email to