More code snippets of R