Description Usage Arguments Value Examples
View source: R/utils-imports.R
Generate n random sentences with a given or random number of words
1 | randomSentences(n, nwords, maxchar = Inf)
|
n |
number of sentences to be generate (integer) |
nwords |
number of words per sentence. If vector each sentence lengths is randomly drawn from the vector |
maxchar |
maximal number of characters per sentence. Note that whole words (not part of words) are excluded if the maximal number is exceeded. |
a vector with n random sentences
1 2 | randomSentences(5, 10) # five random sentences with ten words each
randomSentences(5, 1:5) # five random sentences between two and ten words
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.