Extracts the unique values of discrete features.

getFeatureValues(object, of_sample = "", features)

Arguments

object

A valid spata-object.

of_sample

The sample(s) of interest specified as a single character value or vector. If set to "" (the default) the first sample is chosen.

features

The features of interest specified as a character vector.

Value

A vector or a named list according to the length of features.