queryverse / queryverse/ReadStat.jl
How to extract data and labels of column from .SAV file?
Nobody has claimed this yet.
- Dominant language
- Julia
- Stars
- 79
- Forks
- 18
- Avg merge
- 22h 31m
- Merged PRs (30d)
- 3
Description
How to extract data and labels of column frm SAV file? Is posible convert to nativ Array of Julia ?
Why my A.labels is empty ?
julia> A=read_sav("test.sav")
ReadStatDataFrame(Any[DataValues.DataValue{Float
2.0, 2.0], DataValues.DataValue{Float64}[0.13964
ataType[Float64, Float64, Float64], ["", "", ""]
00000008, 0x0000000000000008], Int32[1, 1, 1], I
.0=>"facet",1.0=>"kob"),"labels1"=>Dict(2.0=>"mi
julia> A
ReadStatDataFrame(Any[DataValues.DataValue{Float64}[1.0, 2.0, 1.0, 2.0], DataValues.DataValue{Float64}[1.0, 1.0,
2.0, 2.0], DataValues.DataValue{Float64}[0.139644, 0.431302, 0.612179, 0.290753]], Symbol[:plec, :klwm, :waga], D
ataType[Float64, Float64, Float64], ["", "", ""], ["F8.2", "F8.2", "F8.2"], UInt64[0x0000000000000008, 0x00000000
00000008, 0x0000000000000008], Int32[1, 1, 1], Int32[0, 0, 0], ["labels0", "labels1", ""], Dict("labels0"=>Dict(2
.0=>"facet",1.0=>"kob"),"labels1"=>Dict(2.0=>"miasto",1.0=>"wiocha")), 4, 3, "", 2019-03-13T13:57:49, 2)
julia> A.data
3-element Array{Any,1}:
DataValues.DataValue{Float64}[1.0, 2.0, 1.0, 2.
DataValues.DataValue{Float64}[1.0, 1.0, 2.0, 2.
DataValues.DataValue{Float64}[0.139644, 0.43130
julia> A.labels
3-element Array{String,1}:
""
""
""
ulia> A.labels[1]
"
ulia> A.labels[2]
"
ulia> A.labels[3]
"
Thanks, Paul
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The report centers on read_sav and the returned ReadStatDataFrame fields data, labels, and value-label dictionaries; begin by reproducing the shown SAV read and inspecting how those fields are populated. Done means establishing the intended extraction path and resolving why the column labels are empty.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- julia
- Domain
- data
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100