sarah
banner
sarahjohnson.io
sarah
@sarahjohnson.io
Research Specialist at Princeton University's Eviction Lab
R programmer & housing analyst
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
August 27, 2025 at 10:37 AM
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
June 23, 2025 at 7:34 PM
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.
June 23, 2025 at 7:34 PM