I’m working with SPSS data, but I’m not able to import data. When I import with ReadStat I am not able to convert data to DataFrame. And when I use StatFiles I’m having import error problems. What is the correct way to import data in SPSS format?
using ReadStat;
using DataFrames;
using StatFiles;
Escola=read_sas7bdat("./Datasets/Pisa/Escola/cy6_ms_cmb_sch_qqq.sas7bdat")
df = DataFrame(load("./Datasets/Pisa/Escola/cy6_ms_cmb_sch_qqq.sas7bdat")
Error with StatFiles:
ArgumentError: no default `Tables.columns` implementation for type: StatFiles.StatFile
Stacktrace:
[1] columns at /Users/alessandrovivas/.julia/packages/Tables/qlc3J/src/fallbacks.jl:156 [inlined]
[2] DataFrame(::StatFiles.StatFile) at /Users/alessandrovivas/.julia/packages/DataFrames/IKMvt/src/other/tables.jl:21
[3] top-level scope at In[16]:7