powered by
docvars(x, field = NULL)docvars(x, field = NULL) <- value
docvars(x, field = NULL) <- value
docvars
docvars<- assigns value to the named field
docvars<-
value
field
head(docvars(inaugCorpus)) docvars(inaugCorpus, "President") <- paste("prez", 1:ndoc(inaugCorpus), sep="") head(docvars(inaugCorpus))
Run the code above in your browser using DataLab