powered by
Get or set the object metadata in a corpus, tokens, dfm, or dictionary object. With the exception of dictionaries, this will be corpus-level metadata.
meta(x, field = NULL, type = c("user", "object", "system", "all"))meta(x, field = NULL) <- value
meta(x, field = NULL) <- value
For meta, a named list of the metadata fields in the corpus.
meta
For meta <-, the corpus with the updated user-level metadata. Only user-level metadata may be assigned.
meta <-
an object for which the metadata will be read or set
metadata field name(s); if NULL (default), return all metadata names
NULL
"user" for user-provided corpus-level metadata; "system" for metadata set automatically when the corpus is created; or "all" for all metadata.
"user"
"system"
"all"
new value of the metadata field
meta(data_corpus_inaugural) meta(data_corpus_inaugural, "source") meta(data_corpus_inaugural, "citation") <- "Presidential Speeches Online Project (2014)." meta(data_corpus_inaugural, "citation")
Run the code above in your browser using DataLab