View source: R/combineStudents.R
| combineStudents | R Documentation | 
Combines achievement and background student data merged by ILSAmerge.
To see which ILSA are available for combining use availableILSA.
combineStudents(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 produced by ILSAmerge.
# 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(),"combineStudents"))
output <- file.path(tempdir(),"combineStudents")
# Merging 'TIMSS' Advanced 1995, as .rds file
ILSAmerge(inputdir = input, outputdir = output, filetype = "rds", quiet = FALSE)
# Rename files
ILSArename(output)
# Check file names
list.files(output,pattern = ".rds")
# Combine student files
combineStudents(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.