Skip to contents

Removes any layers (terra::rast object) or columns (sf object) that are all zero or NA

Usage

remove_empty_layers(dat)

Arguments

dat

sf or terra::rast object

Value

sf or terra::rast depending on input