You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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!
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.
Activity
evanmiller commentedon Nov 12, 2014
Thanks. I've updated the code to use the latest DataFrames API. Try it out.
24f9a1f
TheLink commentedon Nov 12, 2014
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.
evanmiller commentedon Nov 12, 2014
That's easy enough. I went ahead and moved DataRead.jl to a src/ directory:
c7c297f
TheLink commentedon Nov 12, 2014
Thanks again! Would be really great to see this module in the official repository.