O'Reilly logo

R Data Analysis Cookbook - Second Edition by Kuntal Ganguly

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

How it works...

Step 1 opens RStudio.

Step 2 creates a new R Markdown document. A new document includes a default metadata section between lines containing three dashes.

This metadata section includes the title and output sections and can, optionally, also specify the author and date.

Step 4 shows you how to generate the HTML document. If running in RStudio, you can indicate the desired output format by selecting the appropriate menu option. However, it is possible to run knitr within a standard R environment; in this case, the output specified in the markdown document determines the format of the output document.

Step 5 shows you how to generate a PDF or Word document based on the markdown document.

Step 6 opens a precreated document that ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required