Sign in

Riinu Pius

@pius.cloud
187 followers 121 following 130 posts

Senior Data Manager at BBC. If it ain't broke, it's outdated. riinu.me

PostsRepliesMedia
Riinu Pius @pius.cloud · 09/03/2026
I enjoyed this tour at work
Smiling and posing for a picture at the BBC Reporting Scotland studio behind the presenters' desk
070
Riinu Pius @pius.cloud · 18/12/2025
#AdventOfCode Day 09 both parts #rstats I used plotly to guide my search. Sue me 🙃
Code from https://github.com/riinupius/advent2025/blob/main/day09/movie-theatre.R
050
Riinu Pius @pius.cloud · 14/12/2025
#AdventOfCode Day 08 - both parts using igraph! #rstats igraph is superspeedy. pivot_wider() is slow, which to be fair creates 1k columns so that I can get the pairings. Will be a better way, but I was keen to get to igraph asap. First for loop this year 😀 (but I failed Day 03 and skipped Day 04).
Code from https://github.com/riinupius/advent2025/blob/main/day08/playground.Rkmeans in plotlyigraph plot
160
Riinu Pius @pius.cloud · 10/12/2025
My original solution now solves Part II for Test data 😅 1.25 stars in total I award myself for Day 07 🤩
All simple paths and length
000
Riinu Pius @pius.cloud · 10/12/2025
Fixed it!!! With just distances() instead of all simple paths. I tried this earlier too only for the splitters in the last low. Running it on all splitters was the trick 😅 Now on to Part II, which surely requires all paths and therefore can’t be done with my love of graphs? #rstats
Distances function instead of all simple paths
110
Riinu Pius @pius.cloud · 09/12/2025
#AdventOfCode Day 07 Part I & Test data only Can I please get 0.25 ⭐ for solving it for the test input, but running out of memory for the real input 😅
Code from https://github.com/riinupius/advent2025/blob/main/day07/laboratories.R
9693
Riinu Pius @pius.cloud · 06/12/2025
#AdventOfCode Day 06 - both parts 🥳💃 Knew I wanted to do today's in #rstats instead of #pydata as soon as I saw it. Nice wrangling. Some duplication in code, but don't have time to reduce. Pun intended.
Code from https://github.com/riinupius/advent2025/blob/main/day06/trash-compactor.R
170
Riinu Pius @pius.cloud · 05/12/2025
#AdventOfCode Day 05 Part I only in #pydata
Code from https://github.com/riinupius/advent2025/blob/main/day05/cafeteria.py
140
Riinu Pius @pius.cloud · 02/12/2025
#AdventOfCode Day 02 Part I only. Not sure I could do Part II even if I was using beloved #rstats, and not struggling through with #pydata. Anyway, tomorrow is another day. Happy to do what I can given the time restrictions that I have 🚸
Code from https://github.com/riinupius/advent2025/blob/main/day02/gift-shop.py
250
Riinu Pius @pius.cloud · 01/12/2025
It's most wonderful time of the year - #AdventOfCode Day 01🎄 Having abandoned #pydata in favour of #rstats 13 years ago, I am keen to give our relationship another go. Especially as I left pre-pandas 🐼 Will revert to R as soon as the going gets tough. Probably in a day or two 😅
Code from: https://github.com/riinupius/advent2025/blob/main/day01/day01.py
2110
Riinu Pius @pius.cloud · 11/08/2025
📢Accurate != precise📢 Not precise, but accurate is also known as roughly right - Figure (a). Not accurate, but precise is also known as precisely wrong - Figure (d). www.riinu.me/2025/08/accu... #rstats code in blog post
Four bullseye plots illustrating (a) accurate, but not precise, (b) accurate and precise, (c) not accurate and not precise, (c) not accurate, but precise
062
Riinu Pius @pius.cloud · 06/07/2025
New blog post: high quality figures from R Markdown or Quarto to Word: R Markdown set-up chunk: dpi = 300 Quarto YAML: fig-dpi: 300 www.riinu.me/2025/07/dpi/ #rstats #quarto
R Markdown set-up chunk including dpi = 300Quarto YAML including fig-dpi: 300
161
Riinu Pius @pius.cloud · 10/06/2025
#rstats #github #datascience
Simpsons meme: 0 days without a merge conflict with myself
0180
Riinu Pius @pius.cloud · 12/12/2024
#AdventOfCode Day 11 in #rstats and #tidyverse Part II runs 3x faster than Part I 😉 First time using memoise although that's not the speed-up, as using that in both parts. Even the compulsive R-Restarter that I am (command+shift+R), it still bit me a few times 😂 Coding is joy 🥳🎄
Code from https://github.com/riinuots/advent2024/blob/main/11/plutonian_pebbles.R
170
Riinu Pius @pius.cloud · 06/12/2024
#AdventOfCode Day 06 in #rstats and #tidyverse Again just Part I, don't even have time to read the instructions for Part II 😅🎄
Code from https://github.com/riinuots/advent2024/blob/main/06/guard-gallivant.R
060
Riinu Pius @pius.cloud · 05/12/2024
#AdventOfCode Day 05 in #rstats and #tidyverse Part I only - probably won't have time for Part II. Broke out crossing() for the first time this year - another function I only use in December 🙃
Code from https://github.com/riinuots/advent2024/blob/main/05/print-queue.R
150
Riinu Pius @pius.cloud · 04/12/2024
Part II is much better than Part I. Which is unusual 😅
Code from https://github.com/riinuots/advent2024/blob/main/04/ceres_search.R
020
Riinu Pius @pius.cloud · 03/12/2024
#AdventOfCode 2024, Day 03 in #rstats and #tidyverse fill() probably the most useful function here. First time using co-pilot, it was very helpful with the first regular expression, but weirdly lost the plot when I asked for the second one.
Code from https://github.com/riinuots/advent2024/blob/main/03/mull_it_over.R
190
Riinu Pius @pius.cloud · 02/12/2024
#AdventOfCode 2024, Day 02 in #rstats and #tidyverse I wish I could say no for loops were harmed in solving today's puzzle...but I can't. I briefly envisioned something with maps and filters, but this is probably easier to read and understand. Having fun either way 🥳
Code from https://github.com/riinuots/advent2024/blob/main/02/red-nosed_reports.R
370
Riinu Pius @pius.cloud · 01/12/2024
#AdventOfCode 2024, Day 01 in #rstats and #tidyverse Hmmm....a bit early for having to bring in rowwise(), but it's done.
Code from https://github.com/riinuots/advent2024/blob/main/01/historian_hysteria.R
1100
Riinu Pius @pius.cloud · 19/02/2024
Patient flow (CONSORT) diagrams in R using library(consort) now easier than ever. Thanks Alim Dayim! 🤩 neat syntax 🔢 takes patient-level data 🖼️exports well to Word/PDF/PNG ✍️ a few options: number of side boxes, arms, font size Full example: www.riinu.me/2024/02/cons... #rstats
Code from above linkExample patient flow diagram
040
Riinu Pius @pius.cloud · 07/12/2023
#AdventOfCode #rstats Day 07 Not bad this one. Part II: first got right answer for test, but wrong for real input. Issue was mishandling of the 5-joker hand. MVP: using a named vector in str_replace_all()
Code from https://github.com/riinuots/advent2023/blob/main/solutions/day07/camel_cards.R
000
Riinu Pius @pius.cloud · 06/12/2023
#AdventOfCode #rstats Day 06 Phew, a doable one! Those who had almost lost hope just skip the previous couple of days and jump into this one!
Code from https://github.com/riinuots/advent2023/blob/main/solutions/day06/waitforit.R
000
Riinu Pius @pius.cloud · 03/12/2023
#adventofcode #rstats Day 03 Part I only
Code from https://github.com/riinuots/advent2023/blob/main/solutions/day03/gear_ratios.R
010
Riinu Pius @pius.cloud · 02/12/2023
#AdventOfCode #rstats Day 02 
Very tidyverse 😍 
Part II MVP is slice_max() 🏆 
I did misread Part I and was puzzled for a while.
Code from https://github.com/riinuots/advent2023/blob/main/solutions/day02/cube_conundrum.RCode from https://github.com/riinuots/advent2023/blob/main/solutions/day02/cube_conundrum.R
120
Riinu Pius @pius.cloud · 01/12/2023
#AdventOfCode #rstats A bit tricky for Day 1, but loved it 😅🎉🎄 github.com/riinuots/adv...
Code from https://github.com/riinuots/advent2023/blob/main/solutions/day01/trebuchet.RCode from https://github.com/riinuots/advent2023/blob/main/solutions/day01/trebuchet.R
010
Riinu Pius @pius.cloud · 28/08/2023
Getting started with #quarto and Netlify: www.riinu.me/2023/08/quar... #rstats
Table of contents from the above link
081