readILSA | R Documentation |
Reads files created with ILSAmerge().
readILSA(file, mistoNAs = FALSE, untibble = FALSE)
file |
a path to an '.rds', '.sav', or '.zsav' file. |
mistoNAs |
a logical value indicating if missing values should be
converted into NAs. Default is |
untibble |
a logical value indicating if data should be converted into a plain data frame with no column attributes. |
A tibble or a data frame.
# Path where raw 'SPSS' files are
input <- system.file("extdata/reds", package = "ILSAmerge")
# Path where merged files will be saved
unlink(file.path(tempdir(),"ILSAmerge"),recursive = TRUE)
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)
# Read student file
readILSA(file = file.path(output,"BSGV1.rds"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.