50% off: Unlimited data and AI learning.
State of Data and AI Literacy Report 2025

quanteda (version 4.2.0)

check_class: 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

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

Run the code above in your browser using DataLab