fileCopyRename(files, from = ".", to, csv.dir = to, csv.name, loc.prefix, ext,
hours.offset = 0, CardRecorderID = NA, kaleidoscope = TRUE,
split.channels = FALSE, metadata.only = FALSE, full.survey.names = FALSE,
rename = TRUE, copy = TRUE)files is missing.to directory.c("wav", "wac")ext="wac" files must be converted to .wav in Kaleidoscope. Setting to TRUE anticipates the renaming by Kaleidoscope.ext="wac" files must be converted to .wav in Kaleidoscope. Setting to TRUE anticipates further renaming by Kaleidoscope.ext="wac" files must be converted to .wav before metadata can be collected; this argument typically is used in the second pass to collect the metadata.TRUE will use the full file path for the survey name in the resulting metadata table. In those cases the full path name will be stored in the database as well. Useful for coping with nested or disparate survey directories.FALSE will disable renaming.FALSE will disable file copying.corMatch binMatch are capable of using this data as a time reference.
Metadata cannot be read for non-wave recordings, so typically a first function call is used to encode the location prefix and date modified into the file name and move it from the portable media, and a second function call with metadata.ony=TRUE is used after conversion to wave format to fill in the missing metadata.
The full.survey.names argument is designed to permit the batch processing of sound files saved in different directories.mp3Subsamp# Not run because it will create a file in user's working directory
data(survey)
writeWave(survey, "survey.wav")
meta <- fileCopyRename(
files="survey.wav",
to=getwd(),
csv.name="sampleMeta.csv",
loc.prefix="MABI06",
ext="wav",
CardRecorderID=1)
file.remove("survey.wave")Run the code above in your browser using DataLab