Skip to contents

Counts number of levels in a character string (specifically, the empty string ""), a data.frame, data.table, or list of data.frames or data.tables or empty strings.

Usage

.nlevels(x)

Arguments

x

A GRaster, SpatRaster, or a data.frame, data.table, an empty string, or a list thereof.