Hi, could we please have a function that converts a string to sentence case. Some code below with my attempt at this..
str_to_sentence <- function(x) { paste0(str_to_upper(str_sub(x, 1, 1)), str_to_lower(str_sub(x, 2))) }
stringr relies on stringi for these functions, so you'd need to get it into stringi first.
cc @gagolews
I'd really like to have the functionality as well!
@batpigandme I'm working on this for Tidyverse Developer Day.
Activity
hadley commentedon Dec 28, 2017
stringr relies on stringi for these functions, so you'd need to get it into stringi first.
cc @gagolews
wmayner commentedon Nov 1, 2018
I'd really like to have the functionality as well!
jonthegeek commentedon Jan 19, 2019
@batpigandme I'm working on this for Tidyverse Developer Day.