@schochastics@fosstodon.org
@schochastics@fosstodon.org avatar

schochastics

@schochastics@fosstodon.org

Team lead for "Transparent Social Analytics" at GESIS and #RStats enthusiast

This profile is from a federated server and may be incomplete. Browse more on the original instance.

smach, to rstats
@smach@masto.machlis.com avatar

File import/export in R is simple and elegant with the {rio} 📦. It uses just 2 main functions for dozens of file types: import() and export(). Whether .zip, .xlsx, Google sheets, json, .rds, .csv or more, rio handles file-extension checks and selecting the right functions.
http://gesistsa.github.io/rio/
There's also a convert() function.
One of my favorite R packages!
By Thomas J. Leeper, Chung-hong Chan, David Schoch & Jason Becker
@rstats

schochastics,
@schochastics@fosstodon.org avatar

@jmcastagnetto @smach @rstats Probably @chainsawriot can say more, but rio uses data.table::fread for csv files which should be quite robust. You do not by any chance have a file at hand that is problematic with rio? We'd be happy to look at it

schochastics,
@schochastics@fosstodon.org avatar

@jmcastagnetto @smach @rstats @chainsawriot

While readr does read everything, it does it wrongly. the problem is row 87870 where readr does assign the wrong values to the wrong columns. I would argue that the fread approach to through an error is better so that one is forced to fix the row manually.

schochastics, to random
@schochastics@fosstodon.org avatar

Hello ,
can someone explain this behavior? I am very very very confused about this

schochastics, to rust
@schochastics@fosstodon.org avatar

My bucket list for 2024 includes learning . Obviously to wrap it in packages. So here is my first experiment:

https://github.com/schochastics/dialrs

dialrs uses the crate phonenumber to parse phone numbers in R. how exciting!

small write up: http://blog.schochastics.net/posts/2024-02-23_parsing-phone-numbers-with-rust-and-r/

schochastics, to random
@schochastics@fosstodon.org avatar

New blogpost on dynamically allocated matrices in http://blog.schochastics.net/posts/2024-02-13_be-kind-dont-rbind/

schochastics, to random
@schochastics@fosstodon.org avatar

Here is a little summary of solving the one billion row challenge with base R: http://blog.schochastics.net/posts/2024-01-08_one-billion-rows-challenge/

Y'all should know about the great function array2DF!

yabellini, to rstats
@yabellini@fosstodon.org avatar

Pinto et al. 2018 found that 53% of the respondents to their survey on how scientists develop software with R works alone, and 42% developed software within a team of two to five.

Do we have more update data on this topic? @rstats

I will be grateful for pointers 🙏

schochastics,
@schochastics@fosstodon.org avatar

@yabellini @rstats

Does a qunatitative approach count? These are rough perecentages from all CRAN packages (44.84% single authored)

schochastics, to github
@schochastics@fosstodon.org avatar

I created a dashboard template for your own personal "GitHub Wrapped 2023" 🚀

get it here: https://github.com/schochastics/github_wrapped
and make sure to use it with quarto .1.4.0

schochastics, to random
@schochastics@fosstodon.org avatar

Just wrapped devicons (https://devicon.dev) into a extension:
https://github.com/schochastics/devicons

just in case you are in need for icons representing programming languages (I think is actually missing 🤷‍♂️)

schochastics, to random
@schochastics@fosstodon.org avatar

If for whatever reason you need a fast way to write png files in , I wrapped fpng (https://github.com/richgel999/fpng) into a simple package (https://github.com/schochastics/RFPNG). Havent fully understood the technical details of this new type of png format, but if you are interested, here is an interesting blogpost on the format: http://richg42.blogspot.com/2023/12/announcing-cpng-compatible-network.html

schochastics, to random
@schochastics@fosstodon.org avatar

Took me way too long in my career to add such a paragraph to a paper. Y'all should cite the software you use!

https://www.sciencedirect.com/science/article/pii/S0378873323000825

schochastics, (edited ) to random
@schochastics@fosstodon.org avatar

A new version of the pkg adaR, a fast URL parser, hit CRAN. It now has several helper functions to change and clear components of a URL.

https://github.com/schochastics/adaR

schochastics, to random
@schochastics@fosstodon.org avatar

I will be giving a 2h workshop on Network Analysis in in the "Workshops for Ukraine" series.

📆 Thursday, October 26th, 18:00 - 20:00 CEST

more details here: https://sites.google.com/view/dariia-mykhailyshyna/main/r-workshops-for-ukraine#h.1vnvyiw9hmcy

schochastics, to random
@schochastics@fosstodon.org avatar

New package for fast and accurate URL parsing just hit CRAN.

📜 blog: http://blog.schochastics.net/post/adar-an-accurate-fast-and-whatwg-compliant-url-parser/

📦 :https://github.com/schochastics/adaR/

h/t @chainsawriot for his work on the package. He also wrote an excellent post on the dev process: https://chainsawriot.com/postmannheim/2023/10/01/cppqa.html

schochastics, to random
@schochastics@fosstodon.org avatar

ada-url is an extremely fast URL parser written in C++ and I cannot believe that I managed to wrap it into an package🎉 . On first glance, it is way faster than the urltools equivalent and solves some issues with weird looking urls.
Package is super rudimentary atm and feedback+contributions are welcome!
https://github.com/schochastics/adaR

cc @hrbrmstr I feel like this might be of interest to you?

schochastics,
@schochastics@fosstodon.org avatar

@hrbrmstr yes! Took a lot of trial and error for me though to make it communicate with R and am not sure if my approach is the best

brodriguesco, to random
@brodriguesco@fosstodon.org avatar

My book is a recommended reading of a course titled "Workflows for Reproducible Research with & " from @gesistraining , see https://training.gesis.org/?site=pDetails&child=full&pID=0xBFA25C61BAA646DCB0EBAC523EBAF532
I’m having more impact on research since I left academia than when I was in academia 🤣🤣

happy my writing is useful!

schochastics,
@schochastics@fosstodon.org avatar

@brodriguesco Being a member of GESIS, I can tell you that your work is indeed highly appreciated here :)

tanya_shapiro, to random
@tanya_shapiro@fosstodon.org avatar

I know.... another Quarto site post.

But it's more of a dev appreciation post. I opened a wish list request on Quarto's extension GitHub for social-share buttons. @schochastics not only delivered, but the feature was added all within the same hour of my request 🤯

Thank you David, this is EPIC. 🤩

schochastics,
@schochastics@fosstodon.org avatar

@tanya_shapiro I have learned a lot from the material you share here and elsewhere. Glad I could pay you back a little😊

schochastics, to random
@schochastics@fosstodon.org avatar

I like looking at the 📦 collaboration graph. More than 15000 developers connected by ~110,000 📦 coauthorship ties.

It also has a brilliant use case: defining the "Hadley number" (like the Bacon or Erdős Number). Eventually I will write a blog post about it, but for now, results can be found on GitHub:
https://github.com/schochastics/CRAN_collaboration

schochastics, to random
@schochastics@fosstodon.org avatar

So the other day I asked ChatGPT about breaking changes over the years in base R. I am very certain both of these are nonsense. But how did it come up with it?!?!?

schochastics,
@schochastics@fosstodon.org avatar

@brodriguesco In contrast to chatGPT, this makes sense 😀

schochastics, to random
@schochastics@fosstodon.org avatar

I have created a series of templates for creating CVs with (They are adapted from already existing latex templates and not my own creation). This is the overview repository for all templates:

https://github.com/schochastics/quarto-cv

A template for cvs in quarto with a sidebar on the right
A template for cvs in quarto with a classic style
A template for cvs in quarto with a modern style

schochastics, to random
@schochastics@fosstodon.org avatar

The package rtoot can now also be used to boost/favourite/bookmark statuses 🙂

https://github.com/schochastics/rtoot

schochastics,
@schochastics@fosstodon.org avatar

@urswilke well yes, I implemented that 😉

schochastics, to random
@schochastics@fosstodon.org avatar

The package PSAWR is on its way to CRAN🥳
The pkgs is a (so far thin) wrapper for the pushshift API to obtain comment/submission histories of reddit.
https://github.com/schochastics/psawr

schochastics,
@schochastics@fosstodon.org avatar

@dekkzz76 yep

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