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 = "datavic:VMHYDRO_WATERCOURSE_DRAIN") %>%
select(HIERARCHY, PFI)
)
#> • Using collect() on this object will return 191506
#> • features and 6 fields
#> • At most six rows of the record are printed here
#> ────────────────────────────────────────────────────────────────────────────────
#> Simple feature collection with 6 features and 5 fields
#> Geometry type: LINESTRING
#> Dimension:     XY
#> Bounding box:  xmin: 142.7675 ymin: -35.06905 xmax: 143.324 ymax: -35.04559
#> Geodetic CRS:  GDA94
#> # A tibble: 6 × 6
#>   id               PFI    UFI HIERARCHY OBJECTID                        geometry
#>   <chr>          <int>  <int> <chr>        <int>                <LINESTRING [°]>
#> 1 VMHYDRO_WAT… 8553127 2.55e6 L             2973 (143.3209 -35.06721, 143.321 -…
#> 2 VMHYDRO_WAT… 8553130 2.55e6 L             2975 (142.7845 -35.06031, 142.7846 …
#> 3 VMHYDRO_WAT… 8553143 2.55e6 L             2978 (142.7731 -35.06204, 142.7731 …
#> 4 VMHYDRO_WAT… 8553149 2.55e6 L             2981 (142.9148 -35.0603, 142.9149 -…
#> 5 VMHYDRO_WAT… 8553158 2.55e6 L             2987 (142.8513 -35.06451, 142.8534 …
#> 6 VMHYDRO_WAT… 8553168 2.55e6 L             2992 (142.8574 -35.06384, 142.8578 …
# }