Skip to contents

Convencience function to load SAS datasets

Usage

read_sas_formatted(path_to_data = NULL, path_to_format = NULL)

Arguments

path_to_data

path to .sas7bdat file

path_to_format

path to .sas7bcat file

Value

tibble with data

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