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, defunct_methods = NULL)

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 Sept. 11, 2024, 6:08 p.m.