textTransformer: This function modifies a block of text by randomly replacing...

Description Usage Arguments Value Examples

View source: R/textTransformer.R

Description

This function modifies a block of text by randomly replacing a set number of words with a random animal.

Usage

1
textTransformer(text, num_words = 1)

Arguments

text

String Character

num_words

Integer

Value

a string with the modified text

Examples

1
2
text = "Your chances of being ambushed by a duck are low... but never zero!"
textTransformer(text)

UBC-MDS/Ranimalsgonewild documentation built on Feb. 12, 2022, 7:48 a.m.