ILSArename | R Documentation |
ILSAmerge
filesRenames files produced by ILSAmerge
from name codes to comprehensible names
including the study name, year and respondent.
This function has been tested to behave correctly for: 'TIMSS', 'TIMSS Advanced',
'PIRLS', 'ICCS', 'ICILS', 'CIVED', 'REDS', 'RLII', and 'SITES' (2006).
ILSArename(
inputdir = getwd(),
codeTOname = TRUE,
overwrite = TRUE,
quiet = FALSE
)
inputdir |
a string indicating the path where ILSA 'SPSS' files are stored. |
codeTOname |
a logical value indicating if files should be renamed from
codes to names ( |
overwrite |
a logical value indicating if files should be overwritten.
If |
quiet |
a logical value indicating if progress status should be
shown. Default is |
Renames or copies files produced by ILSAmerge
.
# Merge files
dir.create(file.path(tempdir(),"REDS2021"),showWarnings = FALSE)
ILSAmerge(inputdir = system.file("extdata/reds", package = "ILSAmerge"),
outputdir = file.path(tempdir(),"REDS2021"))
# Show files with raw names
list.files(file.path(tempdir(),"REDS2021"))
# Rename files
ILSArename(inputdir = file.path(tempdir(),"REDS2021"))
# Show files new names
list.files(file.path(tempdir(),"REDS2021"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.