Skip to content

to_stata results in unnecessarily long strings #7858

Closed
@cpbl

Description

@cpbl

I'm writing some simple data, including a string of len()=5 using to_stata.
In Stata, I then have trouble with it due to its length. codebook shows that my variable as been encoded as a string of length 244:
of type "string (str244), but longest is str5"

If tthe longest string is length 5, so should be the output variable type in Stata.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions