Learn R Programming

warbleR (version 1.0.2)

querxc: Access Xeno-Canto recordings and metadata

Description

querxc downloads recordings and metadata from Xeno-Canto (http://www.xeno-canto.org/).

Usage

querxc(qword, download = FALSE)

Arguments

qword
Character vector of length one indicating the genus, or genus and species, to query Xeno-Canto database. For example, Phaethornis or Phaethornis longirostris. (http://www.xeno-canto.org/).
download
Logical argument. Downloads recording file names and associated metadata if FALSE. If TRUE, recordings are also downloaded to working directory as .mp3 files. Default is FALSE.

Value

  • Data frame with recording information and .mp3 files (if download = TRUE).

Examples

Run this code
# First create empty folder
dir.create(file.path(getwd(),"temp"))
setwd(file.path(getwd(),"temp"))
df1 <- querxc("Phaethornis anthophilus", download = FALSE)
View(df1)

#downloading files
querxc("Phaethornis anthophilus", download = TRUE)
#check this folder!!
getwd()

# remove example directory
unlink(getwd(),recursive = TRUE)

Run the code above in your browser using DataLab