sf_remove_geom: Remove geometry from sf objects

Description Usage Arguments Value

Description

Funtion to remove geometry, if the object is in fact an sf object. Simply Returns the input object if it isn't. This funtion is only necessary, because st_set_geometry(x,NULL) returns an error if the input is not sf, and data.frame(x) keep the geometry as a column.

Usage

1

Arguments

sf

Anything.

Value

The input, if it was not of class sf. A data.frame, if it was


swissgeodata4r/swissrastermaps4r documentation built on May 31, 2019, 6:44 p.m.