Learn R Programming

bcdata (version 0.5.1)

as_tibble: 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 bcdc_promise
collect(x, ...)

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

Arguments

x

object of class bcdc_promise

Examples

Run this code
# \donttest{
try(
  bcdc_query_geodata("bc-airports") %>%
    collect()
)

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

Run the code above in your browser using DataLab