Long Nguyen (@long39ng) header
Long Nguyen (@long39ng) profile picture

Researcher @deziminstitut. PhD candidate in sociology @unibielefeld. #rstats #rspatial #dataviz

Joined September 2020
Rewrote the #rstats #shinyapps in #svelte with #typescript. Loads much faster and feels much snappier now 🚀 Also mobile responsive 💫 Served entirely statically via GitHub Pages: 👉 regiohub.github.io/soep-regi…
The #rstats #shinyapp for exploring some German regional data is now available at long39ng.shinyapps.io/soep-r… ✨ Both content and interface will keep getting updated! (Still only in German, but your browser can translate it into English 😅)
4
35
1
226
29,277
Inspecting nested lists in #rstats can be daunting, so I've created a small package {listviewerlite} (inspired by listviewer) that creates a collapsible tree view of R lists using only #html and #css, without the need for #javascript github.com/long39ng/listview… Acknowledgement: 🧵
3
9
2
74
6,265
CSS code to style the tree view adapted from blog post by Kate Morley iamkate.com/code/tree-views/
2
288
Introducing {remmy}, a minimal API package for the Reddit alternative Lemmy (join-lemmy.org/instances) in #RStats 📦 github.com/long39ng/remmy 📦 (All function code and documentation are programmatically generated from the official JavaScript client source 💻🚀)
1
10
929
#AdventOfCode 2022 Day 13 in #RStats Got a little tripped up on the equality case, but am quite happy with how clean the main recursive function looks in the end github.com/long39ng/advent-o…
2
4
#AdventOfCode Day 8 in #RStats `purrr::head_while` is extremely useful for both parts 🚀 GH repo: github.com/long39ng/advent-o…
3
3
The #rstats #shinyapp for exploring some German regional data is now available at long39ng.shinyapps.io/soep-r… ✨ Both content and interface will keep getting updated! (Still only in German, but your browser can translate it into English 😅)
This post is from an account that no longer exists. Learn more
1
8
1
36
New #OpenAccess publication 🚨 (also, my 1st dissertation paper 🙏) ➡️ frontiersin.org/articles/10.… Geocoding of massive Twitter dataset (866 million German tweets) with my colleagues @unibielefeld: @doriantsolak @Data_Annalyzing @knauff_stefan @SimonKuehne (1/4)
2
5
22
Using the user profile location fields, we could match over 1/4 of the tweets to German administrative regions at NUTS 1, 2 and 3 level (compared to 0.18% that have Twitter geotags) (2/4)
1
1
My #rstats solution to Day 13 of #AdventOfCode Is eyeballing the result allowed, or should I have used OCR to read the answer from the output image? 🤓
2
1
14
#AdventOfCode Day 9 in #rstats "Cheated" in Part 2 by converting the matrix to a #rspatial raster, then clump adjacent cells with a value < 9 together to form basils
3
2
1
12
My #rstats solution to Day 8 of #AdventOfCode 🥵 Still sticking to the tidyverse, but the code this time is rather untidy
1
6
My #rstats solution to Day 6 of #AdventOfCode with the tidyverse. Tried putting all the fish into a vector at first and those fish really took over the entire ocean (ie my RAM) 🐠🐠
1
1
8
Had time to catch up on the #AdventOfCode in #RStats Total number of loops until Day 4: zero 😬 (yes, I'm aware that purrr::accumulate wraps around a loop)
1
1
9
#30DayMapChallenge Day 10—Raster (also a belated submission for Day 9—Monochrome 🙈) Spatial interpolation of NO2 levels in Germany from 2001 to 2020. The beeswarm plot underneath the map shows the observed values from the measuring stations. #RStats #rspatial
1
3
22
Full-size GIF and code: github.com/long39ng/xxdaymap… Also, h/t to Prof @edzerpebesma for the lecture at the Hertie summer school and the discussion on why certain types of measuring stations are not suitable for the interpolation
1
Late #TidyTuesday submission: A simple #rshiny app to explore agreement between countries in the UN votes ➡️ long39ng.shinyapps.io/unvote… My personal highlights: - Click-to-select thanks to leaflet events + {sf} - Better responsiveness with leafletProxy #rstats @CorrelAid
2
4
20
This is me abusing @ed_hawkins Warming Stripes for this week's #TidyTuesday. Was super cool getting to know about the Bechdel test with @CorrelAid Code: github.com/long39ng/puig_org… #Rstats #dataviz
3
1
32
Here's my attempt at recreating DuBois' visualisation of city and rural population in 1890 for this week's #DuBoisChallenge. Still far from perfect, but I have already spent far too much time on this 🙈 #TidyTuesday #RStats #dataviz
10
15
3
205
For this year's first @CorrelAid #TidyTuesday meetup, I extracted the median colour from every thumbnail in the Tate Collection's dataset (code: github.com/long39ng/puig_org…). Can anybody please explain the "dark period" after the end of the 19th century? #Rstats
5
3
52
Oh yes, the main piece of code is borrowed/stolen from @chisatini chichacha.netlify.app/2019/0… (already credited in my code but it didn't occur to me to look you up on twitter 😔)
1
It's not the point of the Big Mac index, but I guess "an item may be a staple in one place and a delicacy in another" indeed (economist.com/graphic-detail…). @CorrelAid #TidyTuesday #rstats
2
5
54
This #TidyTuesday, @ameisen_strasse and I dabbled in the table-making business and created an interactive table using {reactable} and {crosstalk}, showcasing BBC's list of 100 inspiring women in 2020. 👉 table and code: rpubs.com/long39ng/702061 @CorrelAid #Rstats #dataviz
4
11
1
92
Can't stress enough how incredibly well documented Greg Lin's {reactable} package is! glin.github.io/reactable/
4
My low-effort contribution at this week's @CorrelAid #TidyTuesday meetup. Alternative title: "Washington hikers HATE dogs" (some highly circulating tabloid, probably) #rstats #dataviz
4
1
1
34