Sign in

sarah

@sarahjohnson.io
152 followers 89 following 26 posts

Research Specialist at Princeton University's Eviction Lab R programmer & housing analyst

PostsRepliesMedia
sarah @sarahjohnson.io · 27/08/2025
Do you ever make a really nice table and then spend like 30+ minutes just clicking around? reactable has gotta be my fav R table package. This table has just shy of 50K rows with grouping, conditional formatting, filtering and sorting. Renders and runs super fast. #rstats
1111
sarah @sarahjohnson.io · 23/06/2025
I also wrapped this into a function for one of my packages, so I can just pass on two vectors of the same length to str_replace_all without creating a named vector manually beforehand
010
sarah @sarahjohnson.io · 23/06/2025
I don't know if it fits your use case, but str_replace_all can replace with a named vector. You might need to add "\\b" around the input to make sure it doesn't match partials, or wrap it with "^" and "$" for an exact match.
110