Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add documentation on shortening provider names into a readable format #12

Open
craig-shenton opened this issue Sep 13, 2022 · 0 comments
Labels
docs Improvements or additions to documentation

Comments

@craig-shenton
Copy link
Contributor

Example from Simon Wellesley-Miller:

library(TM)
library(tidyverse)

# choose words you want to remove from provider names
stopwords = c("HOSPITAL",
              "NHS",
              "FOUNDATION",
              "TRUST",
              "GROUP",
              "SURGICAL",
              "CENTRE")

# remove words from site names
df$org_short <- removeWords(df$organisation_name, stopwords)

# removes extra spaces from site names
df$org_short <- str_squish(df$org_short)
@craig-shenton craig-shenton added the docs Improvements or additions to documentation label Sep 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Improvements or additions to documentation
Projects
Development

No branches or pull requests

1 participant