Learn R Programming

seewave (version 2.1.6)

audiomoth.rename: Rename audiomoth files in a readable format

Description

This function renames or copies files created with an Audiomoth device in a readable format including the data and time of recording.

Usage

audiomoth.rename(dir, overwrite = FALSE, tz = "", prefix = "")

Arguments

dir

a character vector, path to directory where the .WAV files are stored.

overwrite

a logical, to specify if the files should be renamed or copied, if TRUE the files are copied, if FALSE the files are renamed.

tz

a character vector defining a time zone specification. See as.POSIXct

prefix

a charcter vector for a prefix name to be added at the beginning of the file name.

Value

1 logical vector indicating which operation succeeded for each of the files attempted.

Details

The format of the new file names follows the format of the SongMeter SM2/SM4 deveices: PREFIX_YYYYMMDD_HHMMSS.wav.

See Also

audiomoth, songmeter