addSchools | R Documentation |
Add school data to student and teacher files merged by ILSAmerge
.
It will run combineStudents
internally.
To see which ILSA are available for adding school data use availableILSA
.
addSchools(inputdir = getwd(), outputdir = getwd(), quiet = FALSE)
inputdir |
a string indicating the path where |
outputdir |
a string indicating where the combined data will be saved. |
quiet |
a logical value indicating if progress status should be
shown. Default is |
Saves combined student data and teacher data with added school data.
# Path where raw 'SPSS' files are
input <- system.file("extdata/timssadv", package = "ILSAmerge")
# Path where merged files will be saved
dir.create(file.path(tempdir(),"addSchools"))
output <- file.path(tempdir(),"addSchools")
# Merging 'TIMSS' Advanced 1995, as .rds file
ILSAmerge(inputdir = input, outputdir = output, filetype = "rds", quiet = FALSE)
# Check file names
list.files(output,pattern = ".rds")
# Add school data
addSchools(inputdir = output, outputdir = output)
# Check file names
list.files(output,pattern = ".rds")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.