Calum You (@_calumyou) 's Twitter Profile
Calum You

@_calumyou

Data scientist studying fairness @Uber. Former researcher @FoodSecurity_SU. transport🚆, development🌽, climate🌍, #rstats📊. views own. he/him 🇬🇧🇪🇺🏳️‍🌈

ID: 1157183245965877248

linkhttp://calumyou.com calendar_today02-08-2019 06:56:00

156 Tweet

378 Followers

715 Following

Calum You (@_calumyou) 's Twitter Profile Photo

I'm going to try the problems in #AdventofCode this year - we'll see how far I get in #rstats! Here's an opportunity I took to use 📦 slider by Davis Vaughan and avoid thinking too hard...

I'm going to try the problems in #AdventofCode this year - we'll see how far I get in #rstats! Here's an opportunity I took to use 📦 slider by <a href="/dvaughan32/">Davis Vaughan</a> and avoid thinking too hard...
Calum You (@_calumyou) 's Twitter Profile Photo

Here's my hasty solutions to #AdventOfCode2021 Day 8, in #rstats * Vectorised stringr functions can do a lot for you, especially str_split * Use the test data! I was rushing part 1 and missed a typo, which puts you on a 1 minute timeout * Indexing helps map output to numbers

Here's my hasty solutions to #AdventOfCode2021 Day 8, in #rstats

* Vectorised stringr functions can do a lot for you, especially str_split
* Use the test data! I was rushing part 1 and missed a typo, which puts you on a 1 minute timeout
* Indexing helps map output to numbers
Calum You (@_calumyou) 's Twitter Profile Photo

My Day 14 solutions in #rstats to #AdventofCode * You can use purrr::compose() to repeat a function many times! * tidyr::hoist() enables easy conversion of nested lists to the dataframe structure you want github.com/Zedseayou/adve…

My Day 14 solutions in #rstats to #AdventofCode

* You can use purrr::compose() to repeat a function many times!
* tidyr::hoist() enables easy conversion of nested lists to the dataframe structure you want

github.com/Zedseayou/adve…
Calum You (@_calumyou) 's Twitter Profile Photo

Day 15 solutions in #rstats to #AdventofCode Making use of Thomas Lin Pedersen's great tidygraph📦 to run shortest-path finding. A lot of the work becomes parsing input into a usable format! The test data for the second part also has multiple same-length paths... github.com/Zedseayou/adve…

Day 15 solutions in #rstats to #AdventofCode

Making use of <a href="/thomasp85/">Thomas Lin Pedersen</a>'s great tidygraph📦 to run shortest-path finding. A lot of the work becomes parsing input into a usable format! The test data for the second part also has multiple same-length paths...
github.com/Zedseayou/adve…
R Function A Day (@rfunctionaday) 's Twitter Profile Photo

If you use {R6}’s implementation of encapsulated OOP in R, and sometimes you may wish to use more idiomatic functional OOP with such objects. The eponymous function from {R62S3} 📦 generate S3 generics/methods for R6 classes 🔀 xoopr.github.io/R62S3/referenc… #rstats #DataScience

If you use {R6}’s implementation of encapsulated OOP in R, and sometimes you may wish to use more idiomatic functional OOP with such objects.

The eponymous function from {R62S3} 📦 generate S3 generics/methods for R6 classes 🔀

xoopr.github.io/R62S3/referenc…

#rstats #DataScience
Calum You (@_calumyou) 's Twitter Profile Photo

My solution to Day 25 of #AdventofCode in #rstats (just part 1, since I still have 4 stars to get) * lead/lag + coalesce + first/last handle the wraparound well * gganimate 📦 is easy and fun to use! Shows cool patterns as the groups weave and unweave github.com/Zedseayou/adve…

Sherrie Wang (@sherwang) 's Twitter Profile Photo

Fields are basic units of agriculture. 🌾 Digital field boundaries are needed to deliver field-level analytics to farmers. But most of the world lacks field boundary datasets. A thread on filling the data gap with satellites and deep learning, from our latest paper. 🛰 🧵 1/n

Nick HK (@nickchk) 's Twitter Profile Photo

A student did this on their exam code, I assume accidentally (?) and it works! In feols you can pipe in data and it will place it correctly even though data isn't the first argument in feols! Laurent Bergé you tricksy genius

A student did this on their exam code, I assume accidentally (?) and it works! In feols you can pipe in data and it will place it correctly even though data isn't the first argument in feols! <a href="/lrberge/">Laurent Bergé</a> you tricksy genius
Jason Abaluck (@jabaluck) 's Twitter Profile Photo

I thought I'd try to reconstruct Bryan's discussion with a 13-year-old about the minimum wage based on the below tweet: (Bryan Caplan let me know if anything is inaccurate)

Calum You (@_calumyou) 's Twitter Profile Photo

Anecdotally the "general languor without having Levine’s lunchtime-adjacent fillip enter their inbox" hypothesis is checking out