textcounter: Text Counter

Description Usage Arguments Value

View source: R/textTools.R

Description

Counts total prevalence of a set of items in each of a set of texts.

Usage

1
2
textcounter(counted, texts, words = FALSE, fixed = TRUE,
  num_mc_cores = parallel::detectCores())

Arguments

counted

character vector of items to search for in the texts.

texts

character vector of to-be-searched text.

words

logical. Default FALSE. Does counted contain words, or sequences of chracters?

fixed

logical. Default TRUE. Use literal characters instead of regular expressions?

num_mc_cores

integer Number of cores for parallelization. Default is parallel::detectCores().

Value

numeric vector as long as texts indicating total frequencies of counted items.


politeness documentation built on Oct. 30, 2018, 5:05 p.m.