powered by
docvars(x, field = NULL)## S3 method for class 'corpus': docvars(x, field = NULL)docvars(x, field = NULL) <- valuedocvars(x, field = NULL) <- value## S3 method for class 'corpusSource': docvars(x, field = NULL)
## S3 method for class 'corpus': docvars(x, field = NULL)
docvars(x, field = NULL) <- value
## S3 method for class 'corpusSource': docvars(x, field = NULL)
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