Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
R for Data Science Cookbook (n)

You're reading from  R for Data Science Cookbook (n)

Product type Book
Published in Jul 2016
Publisher
ISBN-13 9781784390815
Pages 452 pages
Edition 1st Edition
Languages
Author (1):
Yu-Wei, Chiu (David Chiu) Yu-Wei, Chiu (David Chiu)
Profile icon Yu-Wei, Chiu (David Chiu)

Table of Contents (19) Chapters

R for Data Science Cookbook
Credits
About the Author
About the Reviewer
www.PacktPub.com
Preface
Functions in R Data Extracting, Transforming, and Loading Data Preprocessing and Preparation Data Manipulation Visualizing Data with ggplot2 Making Interactive Reports Simulation from Probability Distributions Statistical Inference in R Rule and Pattern Mining with R Time Series Mining with R Supervised Machine Learning Unsupervised Machine Learning Index

Creating R Markdown reports


RStudio has an R Markdown workflow built in; we can use its GUI to create markdown reports in HTML, PDF, slide, or Microsoft Word format. In this recipe, we will introduce how to build an R Markdown report with RStudio.

Getting ready

Ensure you have installed the latest versions of R and RStudio on your operating system. If you have not yet installed RStudio, please visit the following URL to download the most recent version:

https://www.rstudio.com/products/rstudio/download/

How to do it…

Please perform the following steps to create an R Markdown report:

  1. First, click on File | New File | R Markdown on the menu bar:

    Figure 1: Create an R Markdown report

  2. Next, select the document type in the left-hand side menu, then fill in the Title and Author, and choose the output format in the right-hand side menu:

    Figure 2: Fill in the meta information of an R Markdown report

  3. Moving on, we can now see a markdown document with a YAML header and content in markdown syntax. You can now...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}