randomSentence: Generate a random sentence with n words

Description Usage Arguments Value Examples

View source: R/utils-imports.R

Description

Generate a random sentence with n words

Usage

1
randomSentence(n, maxchar = Inf)

Arguments

n

number of word in sentence

maxchar

maximal number of characters per sentence. Note that whole words (not part of words) are excluded if the maximal number is exceeded.

Value

a string with n words (if length is not constrained)

Examples

1
randomSentence(10)   # one random sentence with 10 words

markheckmann/dissertation documentation built on May 21, 2019, 12:06 p.m.