Discussion
Loading...

Post

  • About
  • Code of conduct
  • Privacy
  • Users
  • Instances
  • About Bonfire
Sharon Machlis
@smach@masto.machlis.com  路  activity timestamp last week

Just learned: It's so easy to sort strings that are numbers in proper numerical order with the {stringr} #Rstats 馃摝's `str_sort()` function and numeric = TRUE!!
x <- c("8", "10", "1", "40")
str_sort(x, numeric = TRUE)
[1] "1" "8" "10" "40"

  • Copy link
  • Flag this post
  • Block
paulusj8
@paulusj8@fosstodon.org replied  路  activity timestamp last week

@smach This is great, thanks for bringing this up!

  • Copy link
  • Flag this comment
  • Block
Log in

bonfire.cafe

A space for Bonfire maintainers and contributors to communicate

bonfire.cafe: About 路 Code of conduct 路 Privacy 路 Users 路 Instances
Bonfire social 路 1.0.0-rc.3.13 no JS en
Automatic federation enabled
  • Explore
  • About
  • Members
  • Code of Conduct
Home
Login