Skip to contents

Takes a string, forces characters to lower case, then removes punctuation and switch spaces to - instead of _

Usage

url_title(st)

Arguments

st

A string that needs to be a title in a url

Value

A string with the aforementioned modifications.

Author

James Balamuta

Examples

url_title("My Name is Jaime!")
#> [1] "my-name-is-jaime"