Roland Schmidt

@zoowalk
100 Followers
286 Following
169 Posts

Dad. PhD Comp Pol CEU alumnus. Im Garten. #rstats hello #julialang

lately more on @zoowalk.bsky.social

websitehttps://werk.statt.codes

Electoral lists in Austria contain details on candidates' profession. How many of the candidates are actually 'politicians by profession' and where are they on the electoral lists. A short blogpost on the recent #EuropeanElections2024, how to pertaining get the data and analyze it.

https://werk.statt.codes/posts/2024-06-26-euparl-2024-ballot/

#rstats

werk.statt.codes – Professional politicians and their position on electoral lists

Electoral lists in Austria include next to the name of each candidate also their profession. How prevalent are candidates who are politicians by profession and where are they located on the lists? An analysis of the electoral lists of the recent European Elections.

Wrote an #rstats blog post about speeches in the lower chamber of the Austrian Parliament, and how MPs respect their time limits.

Turns out the radical right isn't particularly good in respecting time limits.

https://werk.statt.codes/posts/2024-06-11-parliament-speech-length-limits/

werk.statt.codes – Austrian National Council: Time limits of speeches, and other ramblings…

Who speaks for how long in the National Council of Austria’s Parliament? And who respects the relevant time limits?

#rstats #ggplot2 3.5 will have the theme option "legend.location" which aligns legends to the panel or the plot as a whole.
No more fiddling with x and y values.

Kudos to @teunbrand

VS Code Nov release brings floating editor windows 😍

#vscode

hm. maybe that's the new standard approach for me.

Question to #rstats enthusiasts: How are you dealing with NAs when using #str_detect?

str_detect(NA, regex("hello")) results in NA. This is expected behavior and I think I get the reasoning behind it.

In 99 % of my usecases though, I would like to have a FALSE as a result. Hence I need everytime an additional step to convert NAs to FALSE. I find this combersome.

I was wondering how others are dealing with such cases. Sometimes I think a pertaining option in #stringr would be nice....

#rstats #TidyTuesday 2023-37

Had a look at how much time across the globe is spent on child care. Central American countries leading, only to be topped by... Ireland.

Code: https://github.com/werkstattcodes/tidytuesday/tree/master/2023-09-12_human_day

Challenge was to combine beeswarm and maps in on plot.

Credit goes to this SO answer:
https://stackoverflow.com/questions/66409781/how-to-plot-a-zoom-of-the-plot-inside-the-same-plot-area-using-ggplot2/76181262#76181262:~:text=You%20can%20use%20a%20custom%20annotation

tidytuesday/2023-09-12_human_day at master · werkstattcodes/tidytuesday

Contribute to werkstattcodes/tidytuesday development by creating an account on GitHub.

GitHub

Better late than never, here’s my first submission to #rstats #tidytuesday.

Special mention goes to the facet_wrap2 function of the ggh4x package which allows you to easily format individual facets.

Code: https://github.com/werkstattcodes/tidytuesday/blob/master/2023-09-05_union_membership/2023-09-05_unions.qmd

tidytuesday/2023-09-05_union_membership/2023-09-05_unions.qmd at master · werkstattcodes/tidytuesday

Contribute to werkstattcodes/tidytuesday development by creating an account on GitHub.

GitHub

Just realized that the new, 2nd edition of the "R Packages" book by @hadleywickham and @jennybryan is already on sale!! 😀

https://www.oreilly.com/library/view/r-packages-2nd/9781098134938/

The free online version is located at
https://r-pkgs.org/

#rstats

R Packages, 2nd Edition

Turn your R code into packages that others can easily install and use. With this fully updated edition, developers and data scientists will learn how to bundle reusable R functions, … - Selection from R Packages, 2nd Edition [Book]

O’Reilly Online Learning

I wrote an #rstats blog posts on the electoral lists of today's state elections in #Salzburg, Austria.
Scraping, wrangling, plotting...The intent was mainly to get a feeling for the lists, but it was a good exercise to use a few R packages I hadn't used recently - big shout-out to ggh4x which is a kind of turbo-charger for ggplot2.

https://werk.statt.codes/posts/2023-03-30-sbg-elections-candidate-age/

#ltw23 #SalzburgWahlen #Landtagswahl #ltwsalzburg