Skip to content

Handling string values #52

Closed
Closed

Description

@jamesalster

In parser.jl line 210 it states that "String values do not have labels", but several .sav data files I have worked with contradict that assumption. I have checked that haven can handle it just fine.

The first problem is that the labels are not read into the ReadStatTable, instead just duplicating the string column values. The second (downstream problem) is that we end up with vectors with eltype LabeledValue{String, Union{Char, Int32}} which break _get_string_width() in writestat.jl

I'll raise a PR including a test file (I can't attach an .sav on github) to propose a fix.

Activity

  1. junyuan-chen commented on Aug 10, 2026

    @junyuan-chen
    Owner

    Fixed by #53.

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions