Malte Grosser
Malte Grosser
Thank you very much for this great package. I have a use case for which we want to implement a token solution. Each token can be used exactly once. Each...
I just needed to select some path elements by position and thought this should be provided by fs. Sth. like (maybe also vectorized over `path`): ``` r library(fs) path_select
similar to stringr::to_xxx_case functions...
Basically the same as this https://github.com/sfirke/janitor/issues/337#issuecomment-622536287
In the following example we get two differing results, but I believe it should be the same. It seems that the first string doesn't even get split around the abbreviation....
The replacement should be on the left side (i.e. the name of the element). This would be more consistent with the tidyverse (e.g. mutate, rename, etc.).
I.e. this should return "catcatdog" ```r > x to_any_case(x, abbreviations = c("Cat" = "cat")) [1] "cat_cat_dog" > to_any_case(x, abbreviations = c("Cat" = "cat"), case = "none") [1] "CatCATdog" ```