Various experiments and code snippets for R