metacorpus

0th

Percentile

Get or set corpus metadata

Get or set the corpus-level metadata in a corpus object.

Replacement function for corpus-level data

Keywords
corpus
Usage
metacorpus(x, field = NULL)

metacorpus(x, field) <- value

Arguments
x

a corpus object

field

metadata field name(s); if NULL (default), return all metadata names

value

new value of the corpus metadata field

Value

For metacorpus, a named list of the metadata fields in the corpus.

For metacorpus <-, the corpus with the updated metadata.

Aliases
  • metacorpus
  • metacorpus<-
Examples
# NOT RUN {
metacorpus(data_corpus_inaugural)
metacorpus(data_corpus_inaugural, "source")
metacorpus(data_corpus_inaugural, "citation") <- "Presidential Speeches Online Project (2014)."
metacorpus(data_corpus_inaugural, "citation")
# }
Documentation reproduced from package quanteda, version 1.3.0, License: GPL-3

Community examples

Looks like there are no examples yet.