Skip to content

Missing data indicators are not preserved - option for retaining SAS missing data indicators when reading the data into R #769

@libenson-umich

Description

@libenson-umich

I am using the read_sas function to read SAS data into R. The SAS data have different types of missing value indicators (.J=User Missing, .S=Planned Skip, .E=Programming Error, .Z=Not Asked in Current Year). When I read the data into R, all missing data is treated as NA. Is there a way during the read-in process to read in all columns as character strings so that I can still see the different missing value indicators? I don't have access to SAS, so I'm hoping there is a workaround in R that is possible before looking into getting SAS software.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions