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
.
lsa.convert.data2(
inp.folder,
PISApre15 = FALSE,
ISO,
missing.to.NA = FALSE,
out.folder
)
See the "Value" section of the lsa.convert.data
.
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.
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.
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.
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.
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()
.
See the details of lsa.convert.data
.
Foy, P. (Ed.). (2018). PIRLS 2016 User Guide for the International Database. TIMSS & PIRLS International Study Center.
lsa.convert.data2
, lsa.merge.data
, lsa.vars.dict
, lsa.recode.vars
# See the examples of \code{lsa.convert.data}.
Run the code above in your browser using DataLab