ERROR: LoadError: ArgumentError: unknown option delim



I’m trying to load a tab delimited file using the following code:

vcf=readdlm("/Users/George/Desktop/work_projects/Sept2017_24patients_visualize/24patients_edit_test.vcf", delim="\t")

and receive the following error:

ERROR: LoadError: ArgumentError: unknown option delim

I’m using Julia v6.0. Does anyone know why this may be happening?



If you look at the help of readdlm, you can see (though maybe not that clearly) that delim is not a keyword argument, and that it is of type Char. So it is used as follows:

julia> writedlm("test.dat", rand(4,4), '\t')

julia> X = readdlm("test.dat", '\t')
4×4 Array{Float64,2}:
 0.305406  0.541672   0.340519   0.905203
 0.563587  0.0495975  0.921599   0.820904
 0.259678  0.532443   0.717672   0.297311
 0.388682  0.482047   0.0025142  0.82242


Thank you very much @dpsanders. I read the doc/ looked at the help and saw that, but wasn’t sure how to interpret it. Julia is my first programming language so I’m still pretty green at this.

My program is running now!