hadley / emo

Easily insert emoji into R and RMarkdown
416 stars 53 forks source link

emonize #5

Open kohske opened 7 years ago

kohske commented 7 years ago

Wonderful package!!

It may be useful if emo has a function that automatically convert plain text to emonized text. e.g.,

emonize(text, p = 0.9, replace = TRUE)

p is probability of conversion, i.e., if p=1, all possible words are emonized, while if p=0.5 half of possible words are randomly emonized.

If replace is TRUE, the word are replaced by emo. If FALSE emo appears just after the word.