lsa.convert.data2 {RALSA} | R Documentation |
Convert Large-Scale Assessments' Datasets to .RData Format
Description
lsa.convert.data2
is a deprecated version of of the lsa.convert.data
function using a different approach. It is an old version of the lsa.convert.data
function and will be removed from the package in June of 2025. Use only if you experience issues with lsa.convert.data
.
Usage
lsa.convert.data2(
inp.folder,
PISApre15 = FALSE,
ISO,
missing.to.NA = FALSE,
out.folder
)
Arguments
inp.folder |
The folder containing the IEA-like SPSS data files or ASCII text files and
.sps import files for OECD PISA data from cycles prior to 2015.
See details.
If blank, the working directory (getwd() ) is used.
|
PISApre15 |
When converting PISA files, set to TRUE if the input files are from
PISA cycles prior 2015 (ASCII text format with .sps control files)
or to FALSE (default) if they are in SPSS .sav format, as in
the case of IEA studies and the like and OECD PISA 2015 or later. Ignored
if the input folder contains IEA-like studies.
|
ISO |
Vector containing character ISO codes of the countries' data files to
convert (e.g. ISO = c("aus", "svn") ). If none of the files contain
the specified ISO codes in their names, the codes are ignored and a warning
is shown. Ignored when converting PISA files (both for cycles prior 2015
and 2015 and later). This argument is case-insensitive, i.e. the ISO codes
can be passed as lower- or upper-case.
(lower or upper) as the original SPSS .sav files.
|
missing.to.NA |
Should the user-defined missing values be recoded to NA ? If
TRUE , all user-defined missing values from the SPSS files (or
specified in the OECD PISA import syntax files) are all imported as
NA . If FALSE (default), they are converted to valid values
and the missing codes are assigned to an attribute missings for
each variable. See details.
|
out.folder |
Path to the folder where the converted files will be stored. If omitted,
same as the inp.folder , and if the inp.folder is missing as
well, this will be getwd() .
|
Details
See the details of lsa.convert.data
.
Value
See the "Value" section of the lsa.convert.data
.
Note
See the "Notes" section of lsa.convert.data
.
References
Foy, P. (Ed.). (2018). PIRLS 2016 User Guide for the International Database. TIMSS & PIRLS International Study Center.
See Also
lsa.convert.data2
, lsa.merge.data
, lsa.vars.dict
, lsa.recode.vars
Examples
# See the examples of \code{lsa.convert.data}.
[Package
RALSA version 1.5.0
Index]