See dplyr::select for details.

# S3 method for class '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)

  • select(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 1832869
#> • 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: 141.8898 ymin: -39.01699 xmax: 146.3676 ymax: -34.36471
#> Geodetic CRS:  GDA94
#> # A tibble: 6 × 4
#>   id                   pfi hierarchy                                    geometry
#>   <chr>              <int> <chr>                                <LINESTRING [°]>
#> 1 hy_watercourse.1 9627981 L         (146.3657 -38.99044, 146.3648 -38.99038, 1…
#> 2 hy_watercourse.2 9628133 L         (146.3107 -39.01452, 146.3107 -39.01457, 1…
#> 3 hy_watercourse.3 9628125 L         (146.3676 -39.01463, 146.3673 -39.01469, 1…
#> 4 hy_watercourse.4 8547189 L             (142.3582 -34.36471, 142.362 -34.36473)
#> 5 hy_watercourse.5 8547359 L            (141.8898 -34.37302, 141.8902 -34.37232)
#> 6 hy_watercourse.6 8547370 L         (142.2265 -34.38156, 142.2269 -34.38158, 1…
# }