metadoc(x, field = NULL)metadoc(x, field = NULL) <- value
texts
, a character vector of the texts in the corpus.For texts <-
, the corpus with the updated texts.
mycorp <- corpus_subset(data_corpus_inaugural, Year > 1990)
summary(mycorp, showmeta = TRUE)
metadoc(mycorp, "encoding") <- "UTF-8"
metadoc(mycorp)
metadoc(mycorp, "language") <- "english"
summary(mycorp, showmeta = TRUE)
Run the code above in your browser using DataLab