get_layer {rolap}R Documentation

Get geographic information layer

Description

Get the geographic information layer from a geolayer object.

Usage

get_layer(gl, keep_all_variables_na)

## S3 method for class 'geolayer'
get_layer(gl, keep_all_variables_na = FALSE)

Arguments

gl

A geolayer object.

keep_all_variables_na

A boolean, keep rows with all variables NA.

Details

By default, rows that are NA for all variables are eliminated.

Value

A sf object.

See Also

Other query functions: as_GeoPackage(), as_geolayer(), filter_dimension(), get_variable_description(), get_variables(), run_query(), select_dimension(), select_fact(), set_layer(), set_variables(), star_query()

Examples


gl <- mrs_db_geo |>
  as_geolayer()

l <- gl |>
  get_layer()


[Package rolap version 2.5.1 Index]