response_data: Get query records as a data frame

View source: R/frontend.R

response_dataR Documentation

Get query records as a data frame

Description

Obtain the data frame with the records from a successful query.

Usage

response_data(query)

Arguments

query

The query object to extract the data frame from.

Value

A data frame with the information requested in the query.

Examples

library(ArctosR)

if (interactive()) {
  # Request to download all available data
  query <- get_records(
    scientific_name = "Canis lupus", guid_prefix = "MSB:Mamm",
    columns = list("guid", "parts", "partdetail")
  )

  # Grab the dataframe of records from the query
  df <- response_data(query)
}


ArctosR documentation built on Sept. 16, 2025, 1:10 a.m.