freq_word_line: Get frequency of words per line

Description Usage Arguments Examples

Description

Returns a data table returning the number of times a series of desired words appears in a given line of text and the index number of that line.

Usage

1
freq_word_line(text, freqwords)

Arguments

text

Any text or document as a character vector

freqwords

Vector of target words to be matched with the text/document of interest

Examples

1
freq_word_line(text = gardenParty, freqwords = c("she", "they", "he"))

Amherst-Statistics/katherinemansfieldr documentation built on May 5, 2019, 4:55 a.m.