See dplyr::select for details.

# S3 method for vicmap_promise
select(.data, ...)

Arguments

.data

object of class vicmap_promise (likely passed from vicmap_query())

...

Other parameters possibly used by generic

Value

Object of class vicmap_promise, which is a 'promise' of the data that can be returned if collect() is used

Methods (by class)

  • vicmap_promise: select.vicmap_promise

Examples

# \donttest{
try(
vicmap_query(layer = "open-data-platform:hy_watercourse") %>%
 select(hierarchy,  pfi)
)
#> • Using collect() on this object will return 1835052
#> • features and 4 fields
#> • At most six rows of the record are printed here
#> ────────────────────────────────────────────────────────────────────────────────
#> Simple feature collection with 6 features and 3 fields
#> Geometry type: LINESTRING
#> Dimension:     XY
#> Bounding box:  xmin: 146.3073 ymin: -38.9966 xmax: 146.3657 ymax: -38.9847
#> Geodetic CRS:  GDA94
#> # A tibble: 6 × 4
#>   id                   pfi hierarchy                                    geometry
#>   <chr>              <int> <chr>                                <LINESTRING [°]>
#> 1 hy_watercourse.1 9627978 L         (146.33 -38.9898, 146.3298 -38.98929, 146.…
#> 2 hy_watercourse.2 9627981 L         (146.3657 -38.99044, 146.3648 -38.99038, 1…
#> 3 hy_watercourse.3 9627989 L         (146.3163 -38.99256, 146.3163 -38.99256, 1…
#> 4 hy_watercourse.4 9627992 L         (146.3522 -38.99283, 146.3521 -38.99238, 1…
#> 5 hy_watercourse.5 9627997 L         (146.3599 -38.99322, 146.3599 -38.99287, 1…
#> 6 hy_watercourse.6 9628013 L         (146.3454 -38.99466, 146.3454 -38.99467, 1…
# }