word_count: Return a count of the number of words in each document

Description Usage Arguments Value

View source: R/word_count.R

Description

Return a count of the number of words in each document

Usage

1
word_count(.data, .column = NULL)

Arguments

.data

A character vector or a data.frame containing a character vector

.column

Character string naming a column from .data If .column = NULL .data is presumed to be a character vector

Value

A data.frame to which a column containing the number of words for each document will be added to the column in data. If .data is a character vector the object returned will be a two-column data.frame in which the first column contains the text from each document and the second column will contain


clawilso15/Text.Replace documentation built on Feb. 6, 2021, 5:45 a.m.