names-quanteda: Special handling for names of quanteda objects

Description Usage Arguments

Description

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

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
## 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

docid(x)

Arguments

x

an R object.

value

a character vector of up to the same length as x, or NULL.


koheiw/quanteda.core documentation built on Sept. 21, 2020, 3:44 p.m.