Item Details

Dynamic Documents With R and Knitr

Yihui Xie
Format
Book
Published
Boca Raton, FL : CRC Press, [2014]
Language
English
Series
Chapman & Hall/CRC the R Series
Chapman & Hall/CRC the R Series (CRC Press)
ISBN
9781482203530, 1482203537, 1482203545, 9781482203547
Summary
"Preface We import a dataset into a statistical software package, run a procedure to get all results, then copy and paste selected pieces into a typesetting program, add a few descriptions and finish a report. This is a common practice of writing statistical reports. There are obvious dangers and disadvantages in this process: 1. it is error-prone due to too much manual work; 2. it requires lots of human efforts to do tedious jobs such as copying results across documents; 3. the workflow is barely recordable especially when it involves GUI (Graphical User Interface) operations, therefore it is difficult to reproduce; 4. a tiny change of the data source in the future will require the author(s) to go through the same procedure again, which can take nearly the same amount of time and effort; 5. the analysis and writing are separate, so close attention has to be paid to the synchronization of the two parts; In fact, a report can be generated dynamically from program code. Just like a software package has its source code, a dynamic document is the source code of a report. It is a combination of computer code and the corresponding narratives. When we compile the dynamic document, the program code in it is executed and replaced with the output; we get a final report by mixing the code output with the narratives. Because we only manage the source code, we are free of all the possible problems above. For example, we can change a single parameter in the source code, and get a different report on the fly."--
Description
xxv, 190 pages : illustrations ; 24 cm.
Notes
  • "A Chapman & Hall book".
  • Includes bibliographical references and index.
Technical Details

  • LEADER 03108cam a2200457 i 4500
    001 u6219134
    003 SIRSI
    005 20140218083703.0
    008 130611s2014 flua b 001 0 eng c
    010
      
      
    a| 2013018223
    019
      
      
    a| 828768942 a| 852232811
    020
      
      
    a| 9781482203530 q| paperback
    020
      
      
    a| 1482203537 q| paperback
    020
      
      
    a| 1482203545 q| PDF ebook
    020
      
      
    a| 9781482203547
    035
      
      
    a| (OCoLC)852745693 z| (OCoLC)828768942 z| (OCoLC)852232811
    042
      
      
    a| pcc
    040
      
      
    a| DLC b| eng e| rda c| DLC d| YDX d| YDXCP d| OCLCO d| NLGGC d| BTCTA
    050
    0
    0
    a| QA276.4 b| .X54 2014
    100
    1
      
    a| Xie, Yihui c| (Mathematician)
    245
    1
    0
    a| Dynamic documents with R and knitr / c| Yihui Xie.
    264
      
    1
    a| Boca Raton, FL : b| CRC Press, c| [2014]
    300
      
      
    a| xxv, 190 pages : b| illustrations ; c| 24 cm.
    336
      
      
    a| text 2| rdacontent
    337
      
      
    a| unmediated 2| rdamedia
    338
      
      
    a| volume 2| rdacarrier
    490
    1
      
    a| Chapman & Hall/CRC the R series
    500
      
      
    a| "A Chapman & Hall book".
    504
      
      
    a| Includes bibliographical references and index.
    520
      
      
    a| "Preface We import a dataset into a statistical software package, run a procedure to get all results, then copy and paste selected pieces into a typesetting program, add a few descriptions and finish a report. This is a common practice of writing statistical reports. There are obvious dangers and disadvantages in this process: 1. it is error-prone due to too much manual work; 2. it requires lots of human efforts to do tedious jobs such as copying results across documents; 3. the workflow is barely recordable especially when it involves GUI (Graphical User Interface) operations, therefore it is difficult to reproduce; 4. a tiny change of the data source in the future will require the author(s) to go through the same procedure again, which can take nearly the same amount of time and effort; 5. the analysis and writing are separate, so close attention has to be paid to the synchronization of the two parts; In fact, a report can be generated dynamically from program code. Just like a software package has its source code, a dynamic document is the source code of a report. It is a combination of computer code and the corresponding narratives. When we compile the dynamic document, the program code in it is executed and replaced with the output; we get a final report by mixing the code output with the narratives. Because we only manage the source code, we are free of all the possible problems above. For example, we can change a single parameter in the source code, and get a different report on the fly."-- c| Provided by publisher.
    650
      
    0
    a| Statistics x| Data processing.
    650
      
    0
    a| Technical reports.
    650
      
    0
    a| Corporation reports.
    650
      
    0
    a| Mathematical statistics x| Computer programs.
    650
      
    0
    a| Technical writing x| Data processing.
    650
      
    0
    a| Technical writing x| Computer programs.
    650
      
    0
    a| R (Computer program language)
    830
      
    0
    a| Chapman & Hall/CRC the R series (CRC Press)
    596
      
      
    a| 5
    999
      
      
    a| QA276.4 .X54 2014 w| LC i| X031632821 k| CHECKEDOUT l| STACKS m| SCI-ENG t| BOOK

Availability

Google Preview

Loading availability information...