generate_groups: Generate a grouping vector from docvars

Description Usage Arguments Value

View source: R/dfm_group.R

Description

Internal function to generate a grouping vector from docvars used in dfm.corpus, dfm.tokens, dfm.group, and tokens_group

Usage

1

Arguments

x

corpus, tokens or dfm

groups

names of docvars or vector that can be coerced to a factor

Value

a factor


koheiw/quanteda.core documentation built on Sept. 21, 2020, 3:44 p.m.