Skip to contents

Add a column with lengths to the given object.

Usage

add_length(x, col_name = ".length", drop_units = FALSE)

Arguments

x

an sf object.

col_name

a character (length 1). A name for the new column.

drop_units

a logical. Should the area units be droppped?

Value

the given sf object with an additional column.