Rename soundfiles using the template from user.
rename_soundfiles(
stimuli,
translations = NULL,
prefix = NULL,
suffix = NULL,
order = NULL,
missing = NULL,
path,
autonumbering = TRUE,
backup = TRUE,
logging = TRUE
)
character vector of stimuli
character vector of translations (optonal). This values are added after stimuli to the new files' names so the result will be ...stimulus_translation...
.
character vector of length one containing prefix for file names
character vector of length one containing suffix for file names
numeric vector that define the order of stimuli. By default the order of the stimuli is taken.
numeric vector that define missing stimuli in case when some stimuli are not recorded.
path to the directory with soundfiles.
logical. If TRUE, function creates an automatic numbering of files.
logical. If TRUE, function creates backup folder with all files. By default is TRUE.
logical. If TRUE creates a .csv file with the correspondences of old names and new names. This could be useful for restoring in case something goes wrong.
no output