Michael Gicheru
@michaelgicheru.bsky.social
41 followers 280 following 22 posts
Actuary #rstats 🇰🇪
Posts Media Videos Starter Packs
Reposted by Michael Gicheru
karun1710.bsky.social
We're hiring a Data Scientist at @arsenalfc.bsky.social to push the state-of-the-art in applied women's football research! careers.arsenal.com/jobs/6550595...

Feel free to reach out with any questions 🙂
Reposted by Michael Gicheru
noamross.net
A month or two ago someone posted a link to their really amazing set of LLM system instructions for writing #rstats code with good tidy/NSE patterns. (They were also good for humans!) Does anyone recall who or where that was?
michaelgicheru.bsky.social
Ah, was mistaken then. Base R's `file.choose()` is probably the next best thing. Or `choose.files()` for multiple files and much more customisable.
L
michaelgicheru.bsky.social
I think it's the same? The rstudioapi package is largely compatible with positron
Reposted by Michael Gicheru
nanjala.bsky.social
There’s a billboard in Nairobi advertising a luxury development with the tagline “luxury is waking up to lush green views”. And it really it goes to the heart of how neoliberal approaches to development screw over poor countries. They really are paving paradise to put up a parking lot.
Reposted by Michael Gicheru
terrychristiani.bsky.social
Look, I just want all of the #rstats peeps out there to know - this is why the @rconsortium.bsky.social exists. We direct money to projects that directly support the R language and community. Apply and engage with others who are just as enthusiastic and committed to this language as you are.
rconsortium.bsky.social
🚀 The R Consortium Technical Grants Call for Proposals is open until Oct 1, 2025!

Past projects like cpp11armadillo show how these grants strengthen #rstats & #opensource for everyone.

Apply: r-consortium.org/all-projects...

Example: r-consortium.org/posts/r-love...
callforproposals – R Consortium
r-consortium.org
michaelgicheru.bsky.social
To remove the need to use them, you could use the {janitor} package to clean your variable/column names. For example:

```
library(janitor)
x <- data.frame("Month Name" = 1:12) |> clean_names()
```

This should turn the column name to month_name and allow you to refer to it without quotes.
michaelgicheru.bsky.social
You typically don't need those while working with R. I think it comes up because of how you are creating/reading in variable/column names eg from excel. The names probably have spaces in them hence the need to use ' or " or `. You can totally work with them as is but R does not play well with them
Reposted by Michael Gicheru
michaelgicheru.bsky.social
Would you consider having literate programming a first class feature? Scripts with special comments could be compiled into a pdf/html etc?

Otherwise, looks really good!
Reposted by Michael Gicheru
ataustin.bsky.social
oh hi! I know what you're thinking, insurance sounds super boring. trust me it's not, and we have the panelists to prove it! ⤵️
posit.co
Posit @posit.co · Aug 25
Did you miss our latest insurance webinar? Don't sweat it! You can now watch on-demand.. posit.co/webinar/how-...

Posit Product Marketing was joined by leaders from Plymouth Rock Assurance, Milliman, and The Hartford to discuss hot data science topics in the insurance realm. Watch now!
michaelgicheru.bsky.social
Thank you! I'll add it to the list!
michaelgicheru.bsky.social
Thank you so much, this is helpful!

I am trying to improve upon a package that primarily uses matrices. But it's limited by the two-dimensional nature of them, and arrays seem like the natural step up.
michaelgicheru.bsky.social
Hello #rstats hivemind,

Does anyone know of any good reading material for arrays in R? Particularly multi-dimensional arrays?
Reposted by Michael Gicheru
vincentab.bsky.social
{tinytable} is a dead simple, ultra-flexible, and dependency-free #Rstats 📦 to turn data frames into beautiful tables: html, word, pdf, latex, typst, markdown, etc.

v0.10.0 has cool new features and important bug fixes. Check out the detailed tutorials at:

vincentarelbundock.github.io/tinytable/
michaelgicheru.bsky.social
Best table making in #rstats. Hands down. Cannot recommend it enough
vincentab.bsky.social
{tinytable} is a dead simple, ultra-flexible, and dependency-free #Rstats 📦 to turn data frames into beautiful tables: html, word, pdf, latex, typst, markdown, etc.

v0.10.0 has cool new features and important bug fixes. Check out the detailed tutorials at:

vincentarelbundock.github.io/tinytable/
Reposted by Michael Gicheru
nanjala.bsky.social
The final tally of yesterday’s protests in #Kenya. Nine killed, 400 injured and 61 arrests. All killed by the police because the president will not listen to the young people who put him in power.
nation
DAILY©NATION
Black Wednesday: Nine killed, 400 injured as protests rock 27 counties
Nine people were killed, about 400 injured, and 61 arrested on Wednesday as at least 27 counties witnessed protests marking the first anniversary of the June 25, 2024, demonstrations that saw youth protesters storm Parliament.
michaelgicheru.bsky.social
Ok found a solution. Turns out scales::label_number(style_negative = "parents") does this.
Note to future self: read the documentation of functions!!
michaelgicheru.bsky.social
Hey #rsats hivemind, does anyone have a custom function to format negative numbers/percentages to have brackets instead of negative signs for a table generated by {tinytable}?
Reposted by Michael Gicheru
ondrejmottl.bsky.social
This is fun! A merge of my 2 interests: #Rstats and #gamedev🤌 On top of that it is a source of inspiration for learning the new #S7 classes.
I am really thinking about making making turn-based RPG in R using procedural generation, but incorporating #LLM never came to mi mind! Really cool!🙌
#OOP
frankiethull.bsky.social
While I haven't really been discussing my projects much lately, I have a few new repos since New Years and some new features coming to {maize}.

One is an 'agent' project. But instead of focusing on SQL, EDA, or ML agents, it's a turn-based game focused on adventure 🧙🏻‍♂️

github.com/frankiethull...
GitHub - frankiethull/crias: a turn-based camelid adventure game made with ollama, ellmer, & S7
a turn-based camelid adventure game made with ollama, ellmer, & S7 - frankiethull/crias
github.com
Reposted by Michael Gicheru
njtierney.bsky.social
Hi #rstats friends!

I'm starting consulting! I've had a great journey in academia working with brilliant people, and while it's bittersweet (and a bit scary!), I'm excited for this next step. I'll still be maintaining {greta} and am hoping to be even more involved with the R community.

1/n