Drop terra::rast() layers without any data

drop_na_lyrs(x)

Arguments

x

raster layer

Value

raster stack