Handy functions to access the ID of a spatial annotation or a spatial trajectory if there exist only one of each in the object. Mostly used to define the default of dependent functions. Return an error if there are no or more than one IDs found.

idSA(object, verbose = NULL)

idST(object, verbose = NULL)

Arguments

object

An object of class SPATA2 or, in case of S4 generics, objects of classes for which a method has been defined.

verbose

Logical. If TRUE, informative messages regarding the computational progress will be printed.

(Warning messages will always be printed.)

Value

Character value.