read_sasdata(
path,
filename,
years,
checkdups = FALSE,
id,
clean = TRUE,
removeformats = TRUE,
removelabels = TRUE
)
The path to the dataset.
The filename (without extension).
Optional. If dataset from different yeas (for example from LISA) bind together.
Should check for duplicates? Default is FALSE.
If duplicates should be checked, identifier that should be unique. Should be character ("LopNr")
Should the dataset be cleaned from spaces and special characters in character columns? Default is TRUE.
Should sas formats be removed? Default is TRUE.
Should sas labels be removed? Default is TRUE.
A dataset.
if (FALSE) {
antalbarn <- read_sasdata(path = scbpath, filename = "lb_lev_antal_barn", years = 1999:2018, clean = FALSE, checkdups = TRUE, id = "LopNr")
}