sort_colms | R Documentation |
sort_colms
sorts selection table columns in a more intuitive order.
sort_colms(X)
X |
Data frame containing columns for sound file (sound.files), selection (selec), start and end time of signals ('start' and 'end') and low and high frequency ('bottom.freq' and 'top.freq', optional). See the example data 'lbh_selec_table'. |
The function returns the data from the input data frame with the most relevant information for acoustic analysis located in the first columns. The priority order for column names is: "sound.files", "channel", "selec", "start", "end", "top.freq", and "bottom.freq".
The same data as in the input data frame but with the most relevant information for acoustic analysis located in the first columns.
Marcelo Araya-Salas (marcelo.araya@ucr.ac.cr)
library(warbleR)
data("lbh_selec_table")
# mess column order
lbh_selec_table <- lbh_selec_table[, sample(seq_len(ncol(lbh_selec_table)))]
# check names
names(lbh_selec_table)
lbh_selec_table <- sort_colms(X = lbh_selec_table)
# check names again
names(lbh_selec_table)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.