R: Check object class for functions

check_class {quanteda} | R 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)

[Package quanteda version 3.0.0 Index]