You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm facing issues reading SAS files when the encoding is set to 'any'.
Error is Unsupported character set code: 204.
See reprex including simple SAS code to create sample file.
#SAS CODE:# Data Weight2; # input IDnumber $ week1 week16; # AverageLoss=week1-week16; # datalines; # 2477 195 163# 2431 220 198# 2456 173 155# 2412 135 116# ;# libname outlib '~' outencoding='UTF-8';# data outlib.Weight_utf8;# Set Weight2;# Run;# libname out_any '~' outencoding='any';# data out_any.Weight2;# Set Weight2;# Run;
library(haven);
read_sas("~/weight2.sas7bdat");
#> Unsupported character set code: 204#> Error in df_parse_sas_file(spec_data, spec_cat, encoding = encoding, catalog_encoding = catalog_encoding, : Failed to parse /home/[email protected]/weight2.sas7bdat: File has an unsupported character set.
read_sas("~/weight_utf8.sas7bdat")
#> # A tibble: 4 x 4#> IDnumber week1 week16 AverageLoss#> <chr> <dbl> <dbl> <dbl>#> 1 2477 195 163 32#> 2 2431 220 198 22#> 3 2456 173 155 18#> 4 2412 135 116 19
I'm facing issues reading SAS files when the encoding is set to 'any'.
Error is Unsupported character set code: 204.
See reprex including simple SAS code to create sample file.
Created on 2019-11-01 by the reprex package (v0.3.0)
The text was updated successfully, but these errors were encountered: