Throw an informative error when attempting mutate on a bcdc_promise
object
Source: R/utils-classes.R
, R/utils-mutate.R
mutate.Rd
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.
Arguments
- .data
object of class
bcdc_promise
(likely passed frombcdc_query_geodata()
)- ...
One or more unquoted expressions separated by commas. See details.
Examples
# \donttest{
## Mutate columns
try(
res <- bcdc_query_geodata("bc-airports") %>%
mutate(LATITUDE * 100)
)
#> Error : You must type collect() before using mutate() on a WFS.
#> After using collect() add this mutate call::
#> mutate(LATITUDE * 100)
# }