You can specify the type it should be read in as:

julia>data=readcsv("data.txt", String)

6x1 Array{String,2}:
 "146cd6a978544b0168fb11de000"
 "148b7f63e9e2222377c9b364000"
 "148b7f63e9e2222377c9b364000"
 "148ee93eb7c77ef0d249b5d2800"
 "148671515215639117054120400"
 "148ce93eb7c77ef0a249b5d2800"


On Monday, December 1, 2014 1:50:18 PM UTC+2, paul analyst wrote:
>
> Some times in "Char" data is number like  1.4e26 below
> How to process such data? sort, etc., ...
>
> julia> data=readcsv("data.txt")
> 6x1 Array{Any,2}:
>   "146cd6a978544b0168fb11de000"
>   "148b7f63e9e2222377c9b364000"
>   "148b7f63e9e2222377c9b364000"
>   "148ee93eb7c77ef0d249b5d2800"
>  1.4e26
>   "148ce93eb7c77ef0a249b5d2800"
>
> julia> sort(data)
> ERROR: `sort` has no method matching sort(::Array{Any,2})
>
> Paul
>

Reply via email to