Learn R Programming

fasterRaster (version 8.4.0.5)

.nlevels: Count number of levels from a data.frame/table, list, or SpatRaster

Description

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.