exp_est | R Documentation |
exp_est
exports wave objects of an extended selection table as sound files
exp_est(X, file.name = NULL, path = NULL, single.file = FALSE,
selection.table = TRUE, pb = TRUE, normalize = TRUE, parallel = 1, wave.object = FALSE)
X |
object of class 'extended_selection_table' (objects produced by |
file.name |
character string indicating the name of the sound file (if |
path |
A character string indicating the path of the directory where sound files and/or selection table will be saved. If not provided the
function uses the current working directory. Default is |
single.file |
Logical argument to control if all wave objects are pooled together in a
single sound file (if |
selection.table |
Logical argument to determine if a Raven sound selection table ('.txt' file) is also exported.
Default is |
pb |
Logical argument to control progress bar when exporting multiple sound files. Default is |
normalize |
Logical argument to control if wave objects are individually normalized before exporting (or before being pasted together if |
parallel |
Numeric. Controls whether parallel computing is applied. It specifies the number of cores to be used. Default is 1 (i.e. no parallel computing). |
wave.object |
Logical argument to control if ONLY a single wave object is returned in the R environment (TRUE) instead of a wave file in the working directory (and a selection table if |
The function takes wave objects contained as attributes in extended selection tables and saves them as sound files in '.wav' format. A single or several sound files can be produced (see 'single.file' argument). In addition, a Raven sound selection table can be saved along with the sound files. The exported selection table can be open in Raven for exploring/manipulating selections in 'X'.
Sound file(s) are saved in the provided path or current working directory. If selection.table = TRUE
a Raven sound selection table with the data in 'X' will also be saved.
Marcelo Araya-Salas (marcelo.araya@ucr.ac.cr)
exp_raven
## Not run:
# load example data
data(list = "lbh.est", package = "NatureSounds")
# subset to 10 selections
X <- lbh.est[1:10, ]
# Export data to a single sound file
exp_est(X, file.name = "test", single.file = TRUE, path = tempdir())
# Export data to a single sound file and normalizing, no pb
exp_est(X, file.name = "test2", single.file = TRUE, normalize = TRUE, pb = FALSE, path = tempdir())
# several files
exp_est(X, single.file = FALSE, file.name = "test3", path = tempdir())
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.