Learn R Programming

ArctosR (version 0.1.3)

response_data: Get query records as a data frame

Description

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

Usage

response_data(query)

Value

A data frame with the information requested in the query.

Arguments

query

The query object to extract the data frame from.

Examples

Run this code
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)
}

Run the code above in your browser using DataLab