Learn R Programming

rolap (version 2.5.1)

get_layer: 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 geolayer get_layer(gl, keep_all_variables_na = FALSE)

Value

A sf object.

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.

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

Run this code

gl <- mrs_db_geo |>
  as_geolayer()

l <- gl |>
  get_layer()

Run the code above in your browser using DataLab