The hardware and bandwidth for this mirror is donated by METANET, the Webhosting and Full Service-Cloud Provider.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]metanet.ch.

Rename ILSAmerge files

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"

These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.