makeCoverName: Make Lowercase And Dashed Image File Name

Description Usage Arguments Value

Description

This function takes an author and a title, extracts the alphanumeric characters, mashes them together, makes them all lowercase, hyphenates them, and adds ".png" to the end. So, "A Midsummer Night's Dream" by "Shakespeare" would become "shakespeare-amidsummernightsdream.png". Enjoy!

Usage

1
makeCoverName(author, title, extension = ".jpg")

Arguments

author

The first string to modify, will show up first in the output.

title

The second string to modify, will show up second in the output.

Value

This function returns a modified string.


ecology-rocks/grammaR documentation built on May 15, 2019, 7:58 p.m.