djnavarro,

I wrote a thing. Again. I'm sorry. But also, the santoku package is a very nice solution to a problem that some of us have. Discretising a continuous variable is weirdly painful, and it's nice to have computational tools that get out of your way and let you think about what you want to do with your data

https://blog.djnavarro.net/santoku/

Drmowinckels,
@Drmowinckels@fosstodon.org avatar

@djnavarro love love love this post <3 I enjoy your writing so much, and this is SO what I need. I've had so many cut battles...

djnavarro,

@Drmowinckels The thing that finally clued me in to the fact that this was a necessary niche was the discovery that ggplot2 quietly supplies its own cut_interval(), cut_width() and cut_number() functions. This isn't something that a data vis package should need to export, but cut() per se doesn't handle all the nuanced cases. Thankfully, the santoku::chop_*() functions handle all that and so much more: I'm sure as fuck not going to take a dependency on ggplot2 just to discretise a variable

Drmowinckels,
@Drmowinckels@fosstodon.org avatar

@djnavarro right? I mean, I love ggplot2, but yeah, its not exactly a meaningful dependency if all you want is to discretise a variable!

djnavarro,

@Drmowinckels totally! but yeah, I really do like the chop functions. It's like... there's nothing there that I couldn't easily do myself with a tiny bit of work but also I don't want to do that work, and santoku does it so nicely that I don't have to waste my time faffing about with details I don't really care about. For me at least, it's a really nice example of a package that needs to exist purely because it handles the UX so cleanly

Drmowinckels,
@Drmowinckels@fosstodon.org avatar

@djnavarro yes, so much this! And so much easier to teach students, than like... anything else? :P

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • thenastyranch
  • DreamBathrooms
  • tacticalgear
  • magazineikmin
  • khanakhh
  • everett
  • Youngstown
  • mdbf
  • slotface
  • rosin
  • ethstaker
  • InstantRegret
  • kavyap
  • ngwrru68w68
  • megavids
  • cisconetworking
  • cubers
  • osvaldo12
  • modclub
  • GTA5RPClips
  • tester
  • Durango
  • provamag3
  • anitta
  • Leos
  • normalnudes
  • JUstTest
  • lostlight
  • All magazines