Skip to contents

Read a SAS Dataset from a Zip Archive

Usage

read_sas7bdat_from_zip(zip_file, file)

Arguments

zip_file

(string)
path to the zip archive.

file

(string)
name of the .sas7bdat file within the archive.

Value

A tibble::tibble() as returned by haven::read_sas().

Examples

zip_file <- system.file("extdata", "prime_subset.zip", package = "jmpost")
adsl <- read_sas7bdat_from_zip(zip_file, "adsl_pds2019.sas7bdat")