collect-methods: as_tibble

as_tibbleR Documentation

as_tibble

Description

See tibble::as_tibble for details.

After tuning a query, collect() is used to actually bring the data into memory. This will retrieve an sf object into R. The as_tibble() function can be used interchangeably with collect which matches dbplyr behaviour.

See dplyr::collect for details.

Usage

## S3 method for class 'bcdc_promise'
collect(x, ...)

## S3 method for class 'bcdc_promise'
as_tibble(x, ...)

Arguments

x

object of class bcdc_promise

Examples


try(
  bcdc_query_geodata("bc-airports") %>%
    collect()
)

try(
  bcdc_query_geodata("bc-airports") %>%
    as_tibble()
)



bcdata documentation built on March 31, 2023, 8:10 p.m.