readILSA: Read ILSA data

View source: R/readILSA.R

readILSAR Documentation

Read ILSA data

Description

Reads files created with ILSAmerge().

Usage

readILSA(file, mistoNAs = FALSE, untibble = FALSE)

Arguments

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 FALSE.

untibble

a logical value indicating if data should be converted into a plain data frame with no column attributes.

Value

A tibble or a data frame.

Examples

# 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"))


ILSAmerge documentation built on April 11, 2025, 5:54 p.m.