You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Feature Request: str_replace(), str_replace_all() like renaming within cols_label() to apply across as many columns as applicable #701
I would like to see cols_label support multi-column renames using pattern matching and specified replacement strings for matches much like str_replace, str_replace_all.
If I had columns such as: c1_mean_2019-20, c1_mean_2020-21, I would like to be able to replace c1_mean_ with '', leaving 2019-20, 2020-21. This needs to happen IN the gt object.
changed the title [-]Feature Request: str_replace, str_replace_all like renaming within cols_label to apply across as many columns as applicable[/-][+]Feature Request: `str_replace()`, `str_replace_all()` like renaming within `cols_label()` to apply across as many columns as applicable[/+]on Aug 26, 2022
Activity
rich-iannone commentedon Apr 27, 2021
This is a good idea! Could work in the form of
So that any string manipulation functions would work. We'd have to also ensure that helpers such as
md(),html(), etc., continue to work in this formand this
[-]Feature Request: str_replace, str_replace_all like renaming within cols_label to apply across as many columns as applicable[/-][+]Feature Request: `str_replace()`, `str_replace_all()` like renaming within `cols_label()` to apply across as many columns as applicable[/+]rich-iannone commentedon Dec 5, 2022
Fixed by #1158.