Learn R Programming

Rraven: connecting R and Raven sound analysis software

The Rraven package is designed to facilitate the exchange of data between R and Raven sound analysis software (Cornell Lab of Ornithology). Raven provides very powerful tools for the analysis of (animal) sounds. R can simplify the automatization of complex routines of analyses. Furthermore, R packages as warbleR, seewave and monitoR (among others) provide additional methods of analysis, working as a perfect complement for those found in Raven. Hence, bridging these applications can largely expand the bioacoustician’s toolkit.

Currently, most analyses in Raven cannot be run in the background from a command terminal. Thus, most Rraven functions are design to simplify the exchange of data between the two programs.

Install/load the package from CRAN as follows:

# From CRAN 
install.packages("Rraven")

#load package
library(Rraven)

To install the latest developmental version from github you will need the R package remotes:

# From github
remotes::install_github("maRce10/Rraven")

#load package
library(Rraven)

The package vignette provides detailed examples for each function in Rraven, including both the R code as well as the additional steps in Raven required to fully accomplished the analyses. You can pull it up as follows:

vignette("Rraven")

The animations explaining additional steps in Raven are shown in more detail on the github version of this vignette, which can be downloaded as follows (saves the file “Rraven.github.html” in your current working directory):

download.file(url = "https://raw.githubusercontent.com/maRce10/Rraven/master/gifs/Rraven.hitgub.html", 
destfile = "Rraven.hitgub.html")

The downloaded file can be opened by any internet browser.


Please cite Rraven as follows:

Araya-Salas. (2020), Rraven: connecting R and Raven bioacoustic software. R package version 1.0.9.

Copy Link

Version

Install

install.packages('Rraven')

Monthly Downloads

419

Version

1.0.14

License

GPL (>= 2)

Issues

Pull Requests

Stars

Forks

Maintainer

Marcelo Araya-Salas

Last Published

August 19th, 2024

Functions in Rraven (1.0.14)

relabel_colms

Relabel columns to match the selection table format
run_raven

Open sound files in 'Raven' sound analysis software
to_sound_selection

Convert Raven's selection files into sound selection files
fix_path

Modify sound file path in Raven's selection tables
raven_batch_detec

Run 'Raven' batch detector
exp_empty_sels

Export a 'Raven' selection for all sound files in a folder
imp_raven

Import 'Raven' selections
match_wav_case

Fix the extension case of sound files
selection_files

A list of 'Raven' selection tables.
extract_ts

Extract time series parameters from data imported from 'Raven'
imp_syrinx

Import 'Syrinx' selections
exp_raven

Export 'Raven' selections
exp_est

Export wave objects of extended selection tables as sound files
imp_corr_mat

Import 'Raven' batch correlator output