add_docid: Set the docid for multi-document objects

View source: R/utils.R

add_docidR Documentation

Set the docid for multi-document objects

Description

Set the docid for multi-document objects

Usage

add_docid(x, path, docid_field)

Arguments

x

data.frame; contains texts and document variables

path

character; file path from which x is created; only use in error message

docid_field

numeric or character; indicate position of a text column in x


quanteda/readtext documentation built on Dec. 6, 2024, 10:24 a.m.