Expected result: The SAS metadata properties: "Label", "Length", "Type", "Format", Informat returned as attributes for each column
Actual result: Only "Format" is returned as an attribute
Thanks for initiating this issue @dgyurko
Similar for haven::read_xpt, the metadata properties are kept for class, format.sas, label, but not for length and type
When reading any sas7bdat file via
haven::read_sas
, the only metadata property returned is the "Format".pyreadstat, a python library that is also based on ReadStat has this feature
e.g.: the "Length" property is returned as
variable_storage_width
: a dict with keys being variable names and values being the storage widthExpected result: The SAS metadata properties: "Label", "Length", "Type", "Format", Informat returned as attributes for each column Actual result: Only "Format" is returned as an attribute