Generates praise with praise::praise()
, then repeats some words, and permutes them all.
Arguments
- repeat_words
int scalar, the number of words that get repeated
- repeat_times
an integer-valued (non-negative) vector. If
length(repeat_times)
isrepeat_words
, gives the number of times each repeated word appears. If length 1, each repeated word appears that number of times. Otherwise, throws an error (seerep()
).- template
character scalar, template for the (non-swapped) praise