code snippet"

Permutation Test for F-score Differences in Python

April 22, 2021
Permutation tests can be applied in very diverse scenarios...
code-snippet python stats

Code Snippet: How to Embed a Jupyter Notebook in Your Hugo Static Website

January 22, 2021
Sure you could use a fancy render script, but you could also keep it simple...
code-snippet hugo python

Code Snippet: Including Shiny Apps in Your Static Website with Hugo

January 9, 2021
Adjust the iframe accordingly through shortcode argument parsing
code-snippet hugo shiny R

Code Snippet: Generalized Linear Mixed Models Power Analysis in R

November 26, 2020
A flexible approach that can be stopped and continued at any time. Example code for logistic regression.
R stats code snippet

Code Snippet: Automatically hydrating tweets in rtweet while avoiding rate limits

October 23, 2020
Rate limits can cause the Twitter API to return less tweets without you noticing it.
R twitterAPI code snippet

Code Snippet: Replacing non-UTF-8 characters in filenames with Python (or Unix)

October 16, 2020
German ä, ö, ü, ß caused problems in a Targets pipeline. Drafted this code for renaming files easily.
python bash code snippet"