Press "Enter" to skip to content

Little useless-useful R function

[This article was first published on R – TomazTsql, and kindly contributed to R-bloggers]. (You can report issue about the content on this page here)

Want to share your content on R-bloggers? click here if you have a blog, or here if you don’t.

Nothing spectacular, but yet interesting little useless R function for playing with strings and chars.

Converting Sentence case text to mixture of all and small caps resulting in sentence in mixed case.

For example:

"This is useless R Function that seems to exists."


 "This is UsEleSS r FuNcTion THaT SeEms To ExIsTS."

And many other mixture of cases. So by calling this function, the results will give you the mixed cases string.


Talk about useless functions 🙂


Code is also available at Github. Feel free to improve it with even more wackiness 🙂


Happy Rrrring 🙂


Be First to Comment

Leave a Reply

Your email address will not be published.