AR {seewave} | R Documentation |
This function computes the Acoustic Richness index based on M and Ht indices
AR(..., datatype = "objects", envt = "hil", msmooth = NULL, ksmooth = NULL, ssmooth = NULL, pattern = "[wav]$|[WAV]$|[mp3]$")
... |
|
datatype |
A character string to specify if inputs are either |
envt |
the type of envelope to be returned: either |
msmooth |
mean smooth. See |
ksmooth |
kernel smooth via kernel. See |
ssmooth |
sum smooth. See |
pattern |
an optional regular expression. Only file names which match the regular expression will be returned when |
AR is ranked index based on the rank of the M and Ht indices obtained with the functions M
and th
respectively following:
AR = rank(M)*rank(Ht) / n^2
with
0 <= AR <= 1
A data.frame
with three columns (M, Ht, AR) and n columns, with n the number of objects (respectively files) used as input.
As a ranked index, the results returned by AR strongly depends with the set of objects (respectively files) used as input. Comparaison between different data sets may be spurious. Computing AR on a set of a single object does not make any sense but is allowed.
Jerome Sueur and Marion Depraetere
Depraetere M, Pavoine S, Jiguet F, Gasc A, Duvail S, Sueur J (2012) Monitoring animal diversity using acoustic indices: implementation in a temperate woodland. Ecological Indicators, 13, 46-54.
## input as R objects data(orni) data(tico) AR(orni, tico) ## give names to objects if you wish to have them as row names of the returned data.frame AR(orni=orni, tico=tico) ## input as files stored in the working directory ## file names will be used as row names of the returned data.frame ## Not run: require(tuneR) AR(getwd(), datatype="files") ## End(Not run)