Description Usage Arguments Value Examples
Generate random text using Markov chains.
1 | generate_text(word_freqs, word_length = 200, start_word = NA, rnd_seed = NA)
|
word_freqs |
A |
word_length |
(Default 200) The length in words of the text to generate. |
start_word |
(Optional) A starting word. |
rnd_seed |
(Optional) A random number seed. Useful for reproducing results. |
A character vector containing randomly generated text.
1 2 3 4 | ## Not run: wordfreqs_prideprejudice <- get_word_freqs(dplyr::tibble(text = janeaustenr::prideprejudice))
generate_text(wordfreqs_prideprejudice)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.