Collection of R snippets