Skip to content

str_to_sentence #202

Closed
Closed

Description

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)))
}

Activity

  1. hadley commented on Dec 28, 2017

    @hadley
    Member

    stringr relies on stringi for these functions, so you'd need to get it into stringi first.

    cc @gagolews

  2. wmayner commented on Nov 1, 2018

    @wmayner

    I'd really like to have the functionality as well!

  3. jonthegeek commented on Jan 19, 2019

    @jonthegeek
    Contributor

    @batpigandme I'm working on this for Tidyverse Developer Day.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    featurea feature request or enhancementtidy-dev-day 🤓Tidyverse Developer Day rstd.io/tidy-dev-day

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions