There are several packages available to generate Word document from R. However, in a professional context, Word cannot be avoided.
#INSERT IMAGE RMARKDOWN PDF#
When it comes to generating reports from with R, PDF and HTML give more elegant results. Also, R and MS-Word installed are prerequisites to go ahead with this tutorial. There are numerous excellent tutorials available if you have just started with these tools. What will not be covered: This post will not introduce R and R Markdown. Who this post is for: This post is for R users who want to use R Markdown (Rmd) scripts to create Word (docx) documents and would like to programmatically insert headings, outputs and Word cross-references. Automating such routines could be a good way to reduce the likelihood of human errors that often arise while performing numerous repetitive tasks and divert resources from boring copy/paste type of exercises to challenging problem solving. Why using R and R Markdown : As data scientists, we often have repeated analysis to perform (example: validation of analytical methods).
An R Markdown document is written in markdown (an easy-to-write plain text format) and contains chunks of embedded R code. What is R Markdown : R Markdown is a tool designed to help create reproducible, dynamic reports with R.
What is R: R language is widely used among statisticians and data miners for developing data analysis software. Photo from Maarten van den Heuvel on Unsplash