mutate: Throw an informative error when attempting mutate on a...

mutate.bcdc_promiseR Documentation

Throw an informative error when attempting mutate on a bcdc_promise object

Description

The CQL syntax to generate WFS calls does not current allow arithmetic operations. Therefore this function exists solely to generate an informative error that suggests an alternative approach to use mutate with bcdata

See dplyr::mutate for details.

Usage

## S3 method for class 'bcdc_promise'
mutate(.data, ...)

Arguments

.data

object of class bcdc_promise (likely passed from bcdc_query_geodata())

...

One or more unquoted expressions separated by commas. See details.

Methods (by class)

  • mutate(bcdc_promise): mutate.bcdc_promise

Examples



## Mutate columns
try(
  res <- bcdc_query_geodata("bc-airports") %>%
    mutate(LATITUDE * 100)
)



bcgov/bcdata documentation built on Nov. 22, 2023, 6:06 p.m.