Skip to content

DataRead with Julia 0.3.2 #1

Closed
Closed

Description

@TheLink

Trying to load a stata data file with DataRead, I get following errors:

WARNING: DataFrame(::Dict) is deprecated, use convert(::DataFrame,d::Dict)
in read_data_file at /Users/Tobias/.julia/v0.3/DataRead/src/DataRead.jl:148
in read_dta at /Users/Tobias/.julia/v0.3/DataRead/src/DataRead.jl:155
ERROR: DataArray{T,N} has no method matching DataArray{T,N}(::DataArray{Any,1})
in convert at /Users/Tobias/.julia/v0.3/DataFrames/src/dataframe/dataframe.jl:1003
in read_data_file at /Users/Tobias/.julia/v0.3/DataRead/src/DataRead.jl:148
in read_dta at /Users/Tobias/.julia/v0.3/DataRead/src/DataRead.jl:155

It would be great if DataRead could get updated to work with current versions of julia.
Thanks in advance!

Activity

  1. evanmiller commented on Nov 12, 2014

    @evanmiller
    Collaborator

    Thanks. I've updated the code to use the latest DataFrames API. Try it out.

    24f9a1f

  2. TheLink commented on Nov 12, 2014

    @TheLink
    Author

    Wow! That was quick. It works now – at least with stata files. Thanks a lot!!

    One small nitpick. As a julia newbie it took me quite some time to understand that julia expects the module to be in a "src" directory to load the file. It would possibly make it easier for others too if Pkg.clone() this repository will work without manual changes.

  3. evanmiller commented on Nov 12, 2014

    @evanmiller
    Collaborator

    That's easy enough. I went ahead and moved DataRead.jl to a src/ directory:

    c7c297f

  4. TheLink commented on Nov 12, 2014

    @TheLink
    Author

    Thanks again! Would be really great to see this module in the official repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions