Tests if the input object is associated with specific spatial methods / platforms.

containsMethod(object, ...)

# S4 method for class 'SPATA2'
containsMethod(object, method_name, error = FALSE)

# S4 method for class 'SpatialData'
containsMethod(object, method_name, error = FALSE)

Arguments

object

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

...

Used to absorb deprecated arguments or functions.

method_name

Character vector. The names of platforms to check.

error

Logical. If TRUE and the input is invalid the function throws an error.

Value

Logical value. TRUE if any of method_name is the name of the platform.