A guide to authoring books with R Markdown, including how to generate figures and tables, and insert cross-references, citations, HTML widgets, and Shiny apps in R Markdown. The book can be exported to HTML, PDF, and e-books (e.g. EPUB). The book style is customizable. You can easily write and preview the book in RStudio IDE or other editors, and host the book wherever you want (e.g. bookdown.org).
INSIGHTS Additional resources for the Getting Things Done® Workbook Please note: If you do not see the video player, you will need to change your preferences to allow statistics cookies. The 5 Steps of GTD® OPEN Step 1: Capture OPEN Step 2: Clarify OPEN Step 3: Organize OPEN Step 4: Reflect OPEN Step 5: Engage […]
Write An R Package Using Literate Programming Techniques - Yihui Xie | 谢益辉
This is an example of writing an R package using the Literate Programming (LP) technique, implemented through the knitr package and Makefile. It only shows you the idea, and I do not mean you must use …
This book showcases short, practical examples of lesser-known tips and tricks to helps users get the most out of these tools. After reading this book, you will understand how R Markdown documents are transformed from plain text and how you may customize nearly every step of this processing. For example, you will learn how to dynamically create content from R code, reference code in other documents or chunks, control the formatting with customer templates, fine-tune how your code is processed, and incorporate multiple languages into your analysis.
Learn how to program, improve your career and develop your people skills. Let’s make thecomplex simple and tackle the mental aspects of being a software developer together.
R-Shiny developer and consultant with a MSc in Bioinformatics and a Bachelor of Computer Science. Previously a software engineer at Google, IBM, and Wish.com.
In this post, I talk about performance through an efficient algorithm I developed for finding closest points on a map. This algorithm uses both concepts from mathematics and algorithmics. Problem to solve This problem comes from a recent question on StackOverflow. I have two matrices, one is 200K rows long, the other is 20K. For each row (which is a point) in the first matrix, I am trying to find which row (also a point) in the second matrix is closest to the point in the first matrix. This is the first method that I tried on a sample dataset: # Test dataset: longitude and latitude pixels.l...
Here are my notes from a recent talk I gave on vectorization at a Davis R Users’ Group meeting. Thanks to Vince Buffalo, John Myles White, and Hadley Wickham for their input as I was preparing this. Feedback welcome! Beginning R users are often told to “vectorize” their code. Here, I try to explain why vectorization can be advantageous in R by showing how R works under the hood. Now, remember, premature optimization is the root of all evil (Knuth).
Getting started Using the profiler Using the flame graph Using the data viewer Profiling examples Profiling time example Profiling memory example Frequently Asked Questions Additional Resou...
A guide to parallelism in R – Florian Privé – R(cpp) enthusiast
In this post, I talk about parallelism in R. This post is likely biased towards the solutions I use. For example, I never use mcapply nor clusterApply; I prefer to always use foreach. In this post, we will focus on how to parallelize R code on your computer with package {foreach}. In this post, I use mainly silly examples just to show one point at a time. Basics of foreach You can install R package {foreach} with install.packages("foreach"). library(foreach)