Riinu Pius's Avatar

Riinu Pius

@pius.cloud

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

174
Followers
114
Following
116
Posts
09.08.2023
Joined
Posts Following

Latest posts by Riinu Pius @pius.cloud

Smiling and posing for a picture at the BBC Reporting Scotland studio behind the presenters' desk

Smiling and posing for a picture at the BBC Reporting Scotland studio behind the presenters' desk

I enjoyed this tour at work

09.03.2026 20:37 πŸ‘ 8 πŸ” 1 πŸ’¬ 0 πŸ“Œ 0

Rebase Another Day πŸ˜‚

07.03.2026 14:26 πŸ‘ 5 πŸ” 1 πŸ’¬ 0 πŸ“Œ 0

Oh for sure. Not mutually exclusive imo.

20.02.2026 22:59 πŸ‘ 1 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0

It's a never ending lesson in humility. Just when I think I've got it...I don't.

20.02.2026 21:35 πŸ‘ 0 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0

I think by visualise you mean something fancier than a flowchart? Anyway I need to mention that library(consort) works well if it is a flowchart that you need.

20.02.2026 20:31 πŸ‘ 4 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0

Can't wait to try this out. Always an Alpha tester πŸ‘‹πŸ»

03.02.2026 21:22 πŸ‘ 2 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0

Fixed
Now fixed
Now maybe?
Fixed...

(True story)

01.02.2026 20:00 πŸ‘ 2 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0

Distressing

23.01.2026 16:44 πŸ‘ 1 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0

Aha! This is why it had stopped working for me. Or rather was just stuck on "thinking" forever. Now logged out and back in again and working again. Thanks very much for sharing and the video!

21.01.2026 13:00 πŸ‘ 2 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0

I was really keen to use IntelliJ IDEA for Python as it looks good and I had a licence anyway (DataGrip is awesome). But the PyCharm data explorer is just shocking. So I kept using Positron to view data, then stubbornly writing code in IntelliJ. Eventually came to my senses and now only use Positron

10.01.2026 13:24 πŸ‘ 4 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0

Nope, any number of loops spared is a win πŸ™ŒπŸ»

I'm working on Day 10 and have somehow put four maps inside two nested for loops πŸ€ͺ sorry not sorry

27.12.2025 23:27 πŸ‘ 1 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0

I'm revisiting Part II of this one and looking for ideas. Only just saw that you put for loops inside mutate?!? Revolutionary.

27.12.2025 22:00 πŸ‘ 1 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0

Neat as always πŸ™ŒπŸ»

20.12.2025 22:08 πŸ‘ 1 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0
Code from https://github.com/riinupius/advent2025/blob/main/day09/movie-theatre.R

Code from https://github.com/riinupius/advent2025/blob/main/day09/movie-theatre.R

Post image

#AdventOfCode Day 09 both parts #rstats

I used plotly to guide my search. Sue me πŸ™ƒ

18.12.2025 17:08 πŸ‘ 5 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0

Also as.matrix() and dist()

14.12.2025 00:41 πŸ‘ 1 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0

I just solved it too, team igraph πŸ™ŒπŸ»

14.12.2025 00:35 πŸ‘ 1 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0

MVP: is_connected(g) #igraph #rstats #AdventOfCode Day 08

14.12.2025 00:20 πŸ‘ 3 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0
Code from https://github.com/riinupius/advent2025/blob/main/day08/playground.R

Code from https://github.com/riinupius/advent2025/blob/main/day08/playground.R

kmeans in plotly

kmeans in plotly

igraph plot

igraph plot

#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).

14.12.2025 00:19 πŸ‘ 6 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0
All simple paths and length

All simple paths and length

My original solution now solves Part II for Test data πŸ˜…

1.25 stars in total I award myself for Day 07 🀩

10.12.2025 18:18 πŸ‘ 0 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0
Distances function instead of all simple paths

Distances function instead of all simple paths

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

10.12.2025 18:11 πŸ‘ 1 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0

No I don’t need every single path, but all_shortest_paths() to final row isn’t sufficient as there are some paths to splitters that aren’t shortest. Although maybe if checked shortest paths to all splitters that would work πŸ€”

10.12.2025 17:50 πŸ‘ 0 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0

Do I even want the number of paths? Is that for Part II?

10.12.2025 07:03 πŸ‘ 0 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0

Here for all the tips! (I don’t check Bluesky until I’ve had a good go on my own so by the time I’m here I’m happy to see and hear everything πŸ‘€)

09.12.2025 22:33 πŸ‘ 1 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0

Thank you! Might rewrite it with a matrix if have time but thing is I love igraph so much that if anything smells even remotely graphy that’s what I’ll do. It does work for shortest paths, just that some of the splits are not the shortest possible way for a ray to get down so need all simple paths.

09.12.2025 22:09 πŸ‘ 1 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0

Ah good shout and I have used memoise happily in the past. Not sure it would work with my solution here as it’s a single igraph function call that gives me all the answers at once.

09.12.2025 22:06 πŸ‘ 1 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0
Code from https://github.com/riinupius/advent2025/blob/main/day07/laboratories.R

Code from https://github.com/riinupius/advent2025/blob/main/day07/laboratories.R

#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 πŸ˜…

09.12.2025 17:09 πŸ‘ 69 πŸ” 3 πŸ’¬ 9 πŸ“Œ 0

Wow really well done. So succinct. Rotating crossed my mind but decided to go with the devil I know. But would have been much more elegant to rotate as I can see from your solution.

07.12.2025 08:40 πŸ‘ 0 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0

I only use fwf for AoC. And I've only ever used it with equal width splits in the past - so with the help of rep(). First time benefitting from the fact that splits can be different width and feeling like a superhero 🀩

06.12.2025 15:18 πŸ‘ 2 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0

This pipeline is on fire ♨️

06.12.2025 13:43 πŸ‘ 1 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0

I agree lovely one today. I solved without loops. Have a look at my post.

06.12.2025 13:40 πŸ‘ 0 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0