audiomoth.rename: Rename audiomoth files in a readable format

View source: R/seewave.r

audiomoth.renameR Documentation

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.

Details

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

Value

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

Note

Be careful if you overwrite the files.

Author(s)

Jerome Sueur

See Also

audiomoth, songmeter


seewave documentation built on Oct. 19, 2023, 5:07 p.m.