check_class: Check object class for functions

View source: R/validator.R

check_classR Documentation

Check object class for functions

Description

Checks if the method is defined for the class.

Usage

check_class(class, method)

Arguments

class

the object class to check

method

the name of functions to be called

Examples

## Not run: 
quanteda:::check_class("tokens", "dfm_select")

## End(Not run)

quanteda documentation built on May 31, 2023, 8:28 p.m.