drop_words: Drop fraction of words of a text

Description Usage Arguments Examples

View source: R/madlibs.R

Description

Drop fraction of words of a text

Usage

1
drop_words(x, frac = 0.2, replacement = "\\_")

Arguments

x

a string input usually a paragraph

frac

a fraction of words to replace with empty spaces

replacement

a string which will be used instead of the charaters to be replaced

Examples

1
2
drop_words(x = "The woods are lovely dark and deep,
but I have promises to keep and miles to go before I sleep.", frac = .2)

EvaMaeRey/madlibs documentation built on May 14, 2021, 1:48 p.m.