generate_groups: Generate a grouping vector from docvars

Description Usage Arguments Value

View source: R/tokens_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


quanteda documentation built on Nov. 2, 2018, 1:05 a.m.