Quiet often ILSA file names come in codes representing different
respondents, and cycles. To make this codes comprehensible, we can use
ILSArename() to give new names to merged files.
First, we need to use ILSAmerge() to merge the
files:
dir.create(file.path(tempdir(),"REDS2021"),showWarnings = FALSE)
ILSAmerge(inputdir = system.file("extdata/reds", package = "ILSAmerge"),
outputdir = file.path(tempdir(),"REDS2021"),
filetype = c("rds", "zsav", "sav"),quiet = TRUE)This will create 3 files with codes for respondent and cycle:
list.files(file.path(tempdir(),"REDS2021"))
## [1] "BCGV1.rds" "BSGV1.rds" "BTGV1.rds"With ILSArename() we can convert these names:
ILSArename(inputdir = file.path(tempdir(),"REDS2021"))
## 3 ILSAmerge() file(s) found.
## 3 ILSAmerge() file(s) renamed.
list.files(file.path(tempdir(),"REDS2021"))
## [1] "REDS_2021_school.rds" "REDS_2021_student.rds" "REDS_2021_teacher.rds"
Need a high-speed mirror for your open-source project?
Contact our mirror admin team at info@clientvps.com.
This archive is provided as a free public service to the community.
Proudly supported by infrastructure from VPSPulse , RxServers , BuyNumber , UnitVPS , OffshoreName and secure payment technology by ArionPay.