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

@clean_names does not remove slash symbol #52

Closed
ymer opened this issue Oct 5, 2023 · 2 comments
Closed

@clean_names does not remove slash symbol #52

ymer opened this issue Oct 5, 2023 · 2 comments

Comments

@ymer
Copy link

ymer commented Oct 5, 2023

Tidyverse:

library(tidyverse)
library(janitor) 
df = tibble("A/B" = c(1,2)) 
clean_names(df)

Output: A single column called "a_b"

Tidier:

df = DataFrame("A/B" => [1, 2])
@clean_names(df)

Output: A column called "a/_b"

@kdpsingh
Copy link
Member

This looks like it is a bug in Cleaner.jl's polish_names() function, which is what @clean_names() wraps under the hood. I'm going to report this bug there and see if we can get this fixed.

@kdpsingh
Copy link
Member

This should now be fixed as per TheRoniOne/Cleaner.jl#9

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants