R: Special handling for names of quanteda objects

names-quanteda {quanteda} | R Documentation

## Special handling for names of quanteda objects

### Description

Keeps the element names and rownames in sync with the system docvar `docname_`.

### Usage

    ## S3 replacement method for class 'corpus'
    names(x) <- value

    ## S3 replacement method for class 'tokens'
    names(x) <- value

    ## S4 replacement method for signature 'dfm'
    rownames(x) <- value

    ## S4 replacement method for signature 'fcm'
    rownames(x) <- value

### Arguments

`x` | an R object.
`value` | a character vector of up to the same length as `x`, or `NULL`.

[Package quanteda version 3.1.0 Index]