Description Usage Arguments Examples
View source: R/make_sentence.R
This function allows you to create a sentence from a body of words loaded by this package
1 | make_sentence(corpus, prompt = "", n = 1)
|
corpus |
List. A list output from tweet_gettr. |
prompt |
String. A string containing a word to start the markov chain. |
n |
Integer. The length of the sequence of words we want to match when generating a sentence. |
1 | make_sentence(trump_tweets, prompt = "I")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.