Checks if the method is defined for the class.

check_class(class, method)

Arguments

class

the object class to check

method

the name of functions to be called

Examples

if (FALSE) {
quanteda:::check_class("tokens", "dfm_select")
}