The .sas7dbat files are files from the SAS software and we can treat them in R with the “haven” library.
For example:
# The easiest way to get haven is to install the whole tidyverse: install.packages("tidyverse") library(haven) # SAS write_sas(mtcars, "mtcars.sas7bdat") read_sas("mtcars.sas7bdat")