
checkwavs
checks whether .wav files can be read by subsequent functions.
checkwavs(X = NULL, path = NULL)
manualoc
or autodetec
can
be used as the input data frame. If provided the function also returns the
smallest number of samples from the listed selections, which limits the minimum window
length (wl argument in other functions) that can be used in batch analyses.
This could be useful for avoiding errors in dowstream functions (e.g. specan
).NULL
(default) then the current working directory is used.checksels
## Not run:
# # First set temporary folder
# setwd(tempdir())
#
# # save wav file examples
# data(list = c("Phae.long1", "Phae.long2", "Phae.long3"))
# writeWave(Phae.long1,"Phae.long1.wav")
# writeWave(Phae.long2,"Phae.long2.wav")
# writeWave(Phae.long3,"Phae.long3.wav")
#
# checkwavs()
#
# ## End(Not run)
Run the code above in your browser using DataLab