names-quanteda: Special handling for names of quanteda objects

names-quantedaR 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.


quanteda/quanteda documentation built on April 30, 2024, 3:13 p.m.