Advertisement ยท 728 ร— 90

Posts by Riinu Pius

It really helped that it recognised RMarkdown chunks so transition was extremely smooth.

5 hours ago 0 0 0 0

They grow up so fast ๐Ÿฅน I still remember when Quarto was first released and I hopped on the new wagon immediately of course ๐Ÿฅณ

13 hours ago 3 1 1 0
Preview
a person is writing on a white board with the word strong on it ALT: a person is writing on a white board with the word strong on it

Counting the times I thought I was opening a clean dataset that was in fact not clean.

1 week ago 35 1 2 0

Completed with my new favourite any library: Claude ๐Ÿฅณ

2 weeks ago 1 0 0 0

Recommendations for a tidy #rstats package that creates dummy data from a data dictionary? Thank you!

2 weeks ago 0 0 1 0
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

4 weeks ago 8 1 0 0

Rebase Another Day ๐Ÿ˜‚

1 month ago 5 1 0 0

Oh for sure. Not mutually exclusive imo.

1 month ago 1 0 0 0
Advertisement

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

1 month ago 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.

1 month ago 4 0 1 0

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

2 months ago 2 0 0 0

Fixed
Now fixed
Now maybe?
Fixed...

(True story)

2 months ago 2 0 0 0

Distressing

2 months ago 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!

2 months ago 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

2 months ago 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

3 months ago 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.

3 months ago 1 0 1 0
Advertisement

Neat as always ๐Ÿ™Œ๐Ÿป

3 months ago 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 ๐Ÿ™ƒ

3 months ago 5 0 0 0

Also as.matrix() and dist()

3 months ago 1 0 0 0

I just solved it too, team igraph ๐Ÿ™Œ๐Ÿป

3 months ago 1 0 0 0

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

3 months ago 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).

3 months ago 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 ๐Ÿคฉ

3 months ago 0 0 0 0
Advertisement
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

3 months ago 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 ๐Ÿค”

3 months ago 0 0 0 0

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

3 months ago 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 ๐Ÿ‘€)

3 months ago 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.

3 months ago 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.

3 months ago 1 0 0 0