Nothing
knitr::opts_chunk$set( collapse = TRUE )
library(ILSAmerge)
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:
unlink(file.path(tempdir(),"REDS2021"),recursive = TRUE)
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"))
With ILSArename()
we can convert these names:
ILSArename(inputdir = file.path(tempdir(),"REDS2021")) list.files(file.path(tempdir(),"REDS2021"))
unlink(file.path(tempdir(),"REDS2021"),recursive = TRUE)
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.