R/docvars.R
reshape_docvars.Rd
Internal function to subset or duplicate docvar rows
reshape_docvars(x, i = NULL, unique = FALSE, drop_docid = TRUE)
docvar data.frame
numeric or logical vector for subsetting/duplicating rows
if TRUE, names must be all unique. If FALSE, documents with the same names are treated as segments from the same document and given serial number.
TRUE
FALSE
if TRUE, drop unused names of documents.