inst/doc/Rename.R

## ----include = FALSE----------------------------------------------------------
knitr::opts_chunk$set(
  collapse = TRUE
)

## ----setup, echo=FALSE--------------------------------------------------------
library(ILSAmerge)

## ----echo=FALSE---------------------------------------------------------------
unlink(file.path(tempdir(),"REDS2021"),recursive = TRUE)

## ----eval=TRUE----------------------------------------------------------------
dir.create(file.path(tempdir(),"REDS2021"),showWarnings = FALSE)

ILSAmerge(inputdir = system.file("extdata/reds", package = "ILSAmerge"), 
          outputdir = file.path(tempdir(),"REDS2021"), 
          filetype = c("rds", "zsav", "sav"),quiet = TRUE)

## ----eval=TRUE----------------------------------------------------------------
list.files(file.path(tempdir(),"REDS2021"))

## ----eval=TRUE----------------------------------------------------------------
ILSArename(inputdir = file.path(tempdir(),"REDS2021"))
list.files(file.path(tempdir(),"REDS2021"))


## ----echo=FALSE---------------------------------------------------------------
unlink(file.path(tempdir(),"REDS2021"),recursive = TRUE)

Try the ILSAmerge package in your browser

Any scripts or data that you put into this service are public.

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