observe_ham_on_rye: Convert the raw text of all of Ham on Rye to observed Markov...

View source: R/observe_ham_on_rye.R

observe_ham_on_ryeR Documentation

Convert the raw text of all of Ham on Rye to observed Markov chain of words

Description

Formatting of the raw text file of Ham on Rye. The function prepares it into a discrete time observed chain by putting each word in a big vector/list, removing punctuation, cases, and titles.

Usage

observe_ham_on_rye(punctuation = FALSE, uppercase = FALSE, reducedSize = 10000)

Arguments

punctuation

boolean whether to keep punctuation (TRUE) or not (FALSE)

uppercase

boolean whether to distinuqish between uppercase (TRUE) or not (FALSE)

reducedSize

this text is huge, so using only portions of it makes the DTMC estimation go faster.

Value

list containing named entries


shill1729/markovChains documentation built on April 24, 2022, 11:50 a.m.