Suitable for both beginners and advanced users, this popular book makes writing statistical reports easier by integrating computing directly with reporting. Reports range from homework, projects, exams, books, blogs, and web pages to virtually any documents related to statistical graphics, computing, and data analysis. This edition includes a new chapter on R Markdown v2, changes that reflect improvements in the knitr package, and several new sections. Demos and other information about the package are available on the author's website.



Autorentext

Yihui Xie is a software engineer at RStudio. He earned a PhD from the Department of Statistics at Iowa State University. His research focuses on interactive statistical graphics and statistical computing. He is an active R user and the author of several award-winning R packages, such as animation, formatR, Rd2roxygen, and knitr. He is also the founder of "Capital of Statistics," a large online statistics community in China.



Klappentext

Quickly and Easily Write Dynamic Documents

Suitable for both beginners and advanced users, Dynamic Documents with R and knitr, Second Edition makes writing statistical reports easier by integrating computing directly with reporting. Reports range from homework, projects, exams, books, blogs, and web pages to virtually any documents related to statistical graphics, computing, and data analysis. The book covers basic applications for beginners while guiding power users in understanding the extensibility of the knitr package.

New to the Second Edition

  • A new chapter that introduces R Markdown v2
  • Changes that reflect improvements in the knitr package
  • New sections on generating tables, defining custom printing methods for objects in code chunks, the C/Fortran engines, the Stan engine, running engines in a persistent session, and starting a local server to serve dynamic documents

Boost Your Productivity in Statistical Report Writing and Make Your Scientific Computing with R Reproducible

Like its highly praised predecessor, this edition shows you how to improve your efficiency in writing reports. The book takes you from program output to publication-quality reports, helping you fine-tune every aspect of your report.



Zusammenfassung
Quickly and Easily Write Dynamic DocumentsSuitable for both beginners and advanced users, Dynamic Documents with R and knitr, Second Edition makes writing statistical reports easier by integrating computing directly with reporting. Reports range from homework, projects, exams, books, blogs, and web pages to virtually any documents related to statistical graphics, computing, and data analysis. The book covers basic applications for beginners while guiding power users in understanding the extensibility of the knitr package.New to the Second EditionA new chapter that introduces R Markdown v2Changes that reflect improvements in the knitr packageNew sections on generating tables, defining custom printing methods for objects in code chunks, the C/Fortran engines, the Stan engine, running engines in a persistent session, and starting a local server to serve dynamic documentsBoost Your Productivity in Statistical Report Writing and Make Your Scientific Computing with R ReproducibleLike its highly praised predecessor, this edition shows you how to improve your efficiency in writing reports. The book takes you from program output to publication-quality reports, helping you fine-tune every aspect of your report.

Inhalt

Introduction

Reproducible Research
Literature
Good and Bad Practices
Barriers

A First Look
Setup
Minimal Examples
Quick Reporting
Extracting R Code

Editors
RStudio
LYX
Emacs/ESS
Other Editors

Document Formats
Input Syntax
Document Formats
Output Renderers
R Scripts

Text Output
Inline Output
Chunk Output
Tables
Automatic Printing
Themes

Graphics
Graphical Devices
Plot Recording
Plot Rearrangement
Plot Size in Output
Extra Output Options
The tikz Device
Figure Environment
Figure Path

Cache
Implementation
Write Cache
When to Update Cache
Side Effects
Chunk Dependencies
Load Cache Manually
Other Options

Cross Reference
Chunk Reference
Code Externalization
Child Documents

Hooks
Chunk Hooks
Examples

Language Engines
Design
Languages and Tools
Persistent Sessions

Tricks and Solutions
Chunk Options
Package Options
Typesetting
Utilities
Debugging
Multilingual Support

Publishing Reports
RStudio
Pandoc
HTML5 Slides
Jekyll
WordPress

R Markdown
Overview
Pandoc's Markdown Extensions
Output Formats
Interactive Documents with Shiny
Extending R Markdown v2
Changes in R Markdown from v1 to v2

Applications
Homework
Serve Dynamic Documents
Web Site and Blogging
Package Vignettes
Books
Literate Programming for R Packages

Other Tools
Sweave
Other R Packages
Python Packages
More Tools

Appendix: Internals

Bibliography

Index

Titel
Dynamic Documents with R and knitr
EAN
9781315363271
Format
E-Book (pdf)
Veröffentlichung
12.07.2017
Digitaler Kopierschutz
Adobe-DRM
Dateigrösse
12.9 MB
Anzahl Seiten
294