Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

files_move

Moves Files from One Directory to Another Directory


Description

Moves older (defined in alphanumeric order) files from one directory to another directory.

Usage

files_move(path1, path2, file_sep="__", pattern=NULL, path2_name="__ARCH")

Arguments

path1

Original directory

path2

Target directory in which the files should be moved

file_sep

Separator for files

pattern

Pattern in file names to be searched for

path2_name

Part of the name of path2 if argument path2 is missing. If path2 is not provided, it has to be a subdirectory of path1.

See Also

Examples

## Not run: 
#############################################################################
# EXAMPLE 1: Move older files in '__ARCHIVE' directory
#############################################################################

# specify path
path1 <- "p:/IPN/Projects/PISA/Trend_2015/2__Data/All_Waves/"
# specify target directory which is an archive
path2 <- file.path( path1, "__ARCHIVE" )
# move files
files_move( path1, path2 )

## End(Not run)

miceadds

Some Additional Multiple Imputation Functions, Especially for 'mice'

v3.11-6
GPL (>= 2)
Authors
Alexander Robitzsch [aut,cre] (<https://orcid.org/0000-0002-8226-3132>), Simon Grund [aut] (<https://orcid.org/0000-0002-1290-8986>), Thorsten Henke [ctb]
Initial release
2021-01-21 11:48:47

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.