if (<condition>) {
<modify tibble>
return(<your tibble>)
} else {
<modify tibble differently>
return(<your tibble>)
}
if (<condition>) {
<modify tibble>
return(<your tibble>)
} else {
<modify tibble differently>
return(<your tibble>)
}
I feel like I could have lived without knowing that raw vectors in R are little-endian.
I feel like I could have lived without knowing that raw vectors in R are little-endian.
Too many lines of code for this one so I'm just sharing a video instead.
Too many lines of code for this one so I'm just sharing a video instead.
I resisted the urge to use complex numbers for the coordinates in part 1 only to find out that was the solution to part 2!
I resisted the urge to use complex numbers for the coordinates in part 1 only to find out that was the solution to part 2!
There was a beautiful base R solution that worked with the sample input, but I gave up and used a package.
There was a beautiful base R solution that worked with the sample input, but I gave up and used a package.
I shouldn't admit to this one. How long is a blink? Because the last blink in my loop was almost 14 seconds.
I shouldn't admit to this one. How long is a blink? Because the last blink in my loop was almost 14 seconds.
In spite of the evidence I'm still convinced this is a run-length encoding problem!
In spite of the evidence I'm still convinced this is a run-length encoding problem!
Yes, the `%||%` operator is a relic of a failed eval(parse(text = x)) approach.
Yes, the `%||%` operator is a relic of a failed eval(parse(text = x)) approach.
Resorted to brute force and patience for part 2 in the end. Probably only a couple of conditionals away from being a not terrible solution!
Resorted to brute force and patience for part 2 in the end. Probably only a couple of conditionals away from being a not terrible solution!