ILSAmerge | R Documentation |
Merges 'SPSS' data from different International Large-Scale Assessments (ILSA). This function has been tested to behave correctly for: 'TIMSS', 'TIMSS Advanced', 'PIRLS', 'ICCS', 'ICILS', 'CIVED', 'REDS', 'RLII', and 'SITES' (2006).
ILSAmerge(
inputdir = getwd(),
outputdir = getwd(),
population = NULL,
filetype = c("rds", "zsav", "sav"),
MBlimit = NULL,
MBlistlimit = 200,
SPSSlimit = 50,
quiet = FALSE
)
inputdir |
a string indicating the path where ILSA 'SPSS' files are stored. |
outputdir |
the directory where the merged data will be saved. |
population |
a character vector indicating which files should be merged.
If |
filetype |
a string indicating the type of file to be saved, it can
be |
MBlimit |
a numerical value indicating the allowed limit of the combined
storage of the files of one type (see |
MBlistlimit |
a numerical value indicating the allowed limit of the
combined storage of the files of one type for merging through a list.
Values over the limit will be merged through a matrix, which will be slower
but uses less memory. Default is |
SPSSlimit |
a numerical value indicating the limit of files per command
of 'SPSS', typically |
quiet |
a logical value indicating if progress status should be
shown. Default is |
For files merged within R it will also add country information where needed. Country information will be retrieved from 'GitHub' if possible. If not, it will use the package internal data.
Saves merged ILSA data or .sps
syntax for merging ILSA data.
# Path where raw 'SPSS' files are
input <- system.file("extdata/reds", package = "ILSAmerge")
# Path where merged files will be saved
dir.create(file.path(tempdir(),"ILSAmerge"))
output <- file.path(tempdir(),"ILSAmerge")
# Merging 'REDS' 2021, as .rds file
ILSAmerge(inputdir = input, outputdir = output, filetype = "rds", quiet = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.