View source: R/rename_recording.R
| rename_recording | R Documentation | 
For easier manipulation of data obtained using long-term recordings, vendor-specific file names and exchanged by a string of the form 'YYYYMMDD_HHMMSS', as used by the 'AudioMoth' (https://www.openacousticdevices.info/). Date and time information is queried using file.info. **Note**, popular recorders (e.g., 'Olympus LS' or 'Sony PCM' series) differ by having the habit of either saving each file one-by-one (i.e., each file has a unique 'ctime') or in batch mode (i.e, all are saved at once).
rename_recording(
  path = NULL,
  recorder = c("Olympus LS-3", "Sony PCM-D100"),
  format = c("WAV", "wav", "mp3", "MP3"),
  time = c("ctime", "mtime"),
  write_text = TRUE,
  simulate = FALSE
)
path | 
 folder containing files (wav or mp3)  | 
recorder | 
 Type of recorder  | 
format | 
 Format of sound files (default and suggested is to use WAV).  | 
time | 
 Either ctime or mtime  | 
write_text | 
 logical, if TRUE exports a text file with information about file renaming  | 
simulate | 
 logical. If TRUE only shows data frame of names without touching files  | 
data frame listing the modified file names
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.