metacorpus.Rd
Get or set the corpus-level metadata in a corpus object.
metacorpus(x, field = NULL) metacorpus(x, field) <- value
x | a corpus object |
---|---|
field | metadata field name(s); if |
value | new value of the corpus metadata field |
For metacorpus
, a named list of the metadata fields in the corpus.
For metacorpus <-
, the corpus with the updated metadata.
metacorpus(data_corpus_inaugural)#> $source #> [1] "Gerhard Peters and John T. Woolley. The American Presidency Project." #> #> $notes #> [1] "http://www.presidency.ucsb.edu/inaugurals.php" #> #> $created #> [1] "Tue Jun 13 14:51:47 2017" #>metacorpus(data_corpus_inaugural, "source")#> $source #> [1] "Gerhard Peters and John T. Woolley. The American Presidency Project." #>metacorpus(data_corpus_inaugural, "citation") <- "Presidential Speeches Online Project (2014)." metacorpus(data_corpus_inaugural, "citation")#> $citation #> [1] "Presidential Speeches Online Project (2014)." #>