make_iterator: Returns an iterator. Used by prepare_dtm() function.

Description Usage Arguments Examples

View source: R/wordly_functions.R

Description

Creates iterator object to be passed to make_vectorizer(). Ultimately used by prepare_dtm() to construct a DTM.

Usage

1
make_iterator(dat_in, text_var_name, id_var_name, see_verbose = TRUE)

Arguments

dat_in

The data.frame or tibble input.

text_var_name

The name of the column in dat_in containing the text source.

id_var_name

The name of the column in dat_in containing the id source.

see_verbose

Akin to verbose. Defaults to TRUE.

Examples

1
iter_ret <- product_review_df %>% make_iterator("product_review", "product_id")

tomathon-io/wordly documentation built on June 15, 2020, 12:41 a.m.