New package idea: humanize times and quantities

I recently saw a tweet by David Robinson that mentioned the humanize Python library:

It would be neat to have an R pkg like this to generate snippets of output text with inline R code in R Markdown.

Also relevant is this .NET library, GitHub - Humanizr/Humanizer: Humanizer meets all your .NET needs for manipulating and displaying strings, enums, dates, times, timespans, numbers and quantities, which looks a bit more comprehensive. And there are a bunch of JS libraries that look relevant:

Not very comprehensive, but some prior art: https://r-pkg.org/pkg/prettyunits

2 Likes