reshape_docvars: Internal function to subset or duplicate docvar rows

View source: R/docvars.R

reshape_docvarsR Documentation

Internal function to subset or duplicate docvar rows

Description

Internal function to subset or duplicate docvar rows

Usage

reshape_docvars(x, i = NULL, unique = FALSE, drop_docid = TRUE)

Arguments

x

docvar data.frame

i

numeric or logical vector for subsetting/duplicating rows

unique

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.

drop_docid

if TRUE, drop unused names of documents.


quanteda/quanteda documentation built on April 30, 2024, 3:13 p.m.