Description Usage Arguments Value Author(s) See Also Examples
imp_syrinx
imports 'Syrinx' selection data from many files simultaneously.
All files must have the same columns.
1 2 |
path |
A character string indicating the path of the directory in which to look for the text files.
If not provided (default) the function searches into the current working directory. Default is |
all.data |
Logical. If |
recursive |
Logical. If |
exclude |
Logical. Controls whether files that cannot be read are ignored ( |
hz.to.khz |
Logical. Controls if frequency variables should be converted from Hz (the unit used by Syrinx) to kHz (the unit used by warbleR and other bioacoustic analysis packages in R). Default 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). |
pb |
Logical argument to control progress bar. Default is |
A single data frame with information of the selection files. If all.data argument is set to FALSE
the data
frame contains the following columns: selec, start, end, and selec.file. If sound.file.col is provided the data frame
will also contain a 'sound.files' column. If all.data is set to TRUE
then all
columns in selection files are returned.
Marcelo Araya-Salas (marcelo.araya@ucr.ac.cr)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | ## Not run:
#load data
data(selection_files)
#save 'Raven' selection tables in the temporary directory
writeLines(selection_files[[7]], con = file.path(tempdir(), names(selection_files)[7]))
syr.dat <- imp_syrinx(all.data = FALSE)
# View(syr.dat)
#getting all the data
syr.dat <- imp_syrinx(all.data = TRUE)
# View(syr.dat)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.