Learn R Programming

galah (version 2.2.0)

glimpse.data_request: Get a glimpse of your data

Description

glimpse() is like a transposed version of print(): columns run down the page, and data runs across. This makes it possible to see every column in a data frame. It's a little like str() applied to a data frame but it tries to show you as much data as possible. This implementation is specific to galah and is evaluated lazily. [Experimental]

Usage

# S3 method for data_request
glimpse(x, ...)

# S3 method for occurrences_glimpse print(x, ...)

Arguments

x

An object of class data_request

...

Other arguments, currently ignored

Details

This implementation of glimpse() actually involves changing the API call sent to the server, then returning a novel object class with it's own print() method.

Examples

Run this code
if (FALSE) {
galah_call() |>
  filter(year >= 2019,
         basisOfRecord == "HumanObservation") |>
  select(year, basisOfRecord, species) |>
  glimpse() |>
  collect()
}

Run the code above in your browser using DataLab