Convencience function to load SAS datasets
Examples
path_to_data <- system.file("examples", "testsas.sas7bdat", package = "DescrTab2")
pat_to_format <- system.file("examples", "formats.sas7bcat", package = "DescrTab2")
read_sas_formatted(path_to_data, pat_to_format)
#> # A tibble: 4 × 3
#> hello test cat
#> <chr> <dbl> <fct>
#> 1 "one" 1 yes
#> 2 "two" 2 no
#> 3 "three" 3 yes
#> 4 "" NA NA