Skip to contents

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)

Arguments

gl

A geolayer object.

keep_all_variables_na

A boolean, keep rows with all variables NA.

Value

A sf object.

Details

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

Examples


gl <- mrs_db_geo |>
  as_geolayer()

l <- gl |>
  get_layer()