You are previewing Learning RStudio for R Statistical Computing.
O'Reilly logo
Learning RStudio for R Statistical Computing

Book Description

If you need to create and manage complex statistical analysis projects, this book could be a catalyst for great things. In clear, practical chapters it teaches you how to employ Rstudio’s powerful features to perform R statistical computing.

  • A complete practical tutorial for RStudio, designed keeping in mind the needs of analysts and R developers alike

  • Step-by-step examples that apply the principles of reproducible research and good programming practices to R projects

  • Learn to effectively generate reports, create graphics, and perform analysis, and even build R-packages with RStudio

  • In Detail

    Data is coming at us faster, dirtier, and at an ever increasing rate. The necessity to handle many, complex statistical analysis projects is hitting statisticians and analysts across the globe. This book will show you how to deal with it like never before, thus providing an edge and improving productivity.

    "Learning RStudio for R Statistical Computing" will teach you how to quickly and efficiently create and manage statistical analysis projects, import data, develop R scripts, and generate reports and graphics. R developers will learn about package development, coding principles, and version control with RStudio.

    This book will help you to learn and understand RStudio features to effectively perform statistical analysis and reporting, code editing, and R development.

    The book starts with a quick introduction where you will learn to load data, perform simple analysis, plot a graph, and generate automatic reports. You will then be able to explore the available features for effective coding, graphical analysis, R project management, report generation, and even project management.

    "Learning RStudio for R Statistical Computing" is stuffed with feature-rich and easy-to-understand examples, through step-by-step instructions helping you to quickly master the most popular IDE for R development.


    Table of Contents

    1. Learning RStudio for R Statistical Computing
      1. Table of Contents
      2. Learning RStudio for R Statistical Computing
      3. Credits
      4. About the Authors
      5. About the Reviewers
        1. Support files, eBooks, discount offers and more
          1. Why Subscribe?
          2. Free Access for Packt account holders
      7. Preface
        1. What this book covers
        2. What you need for this book
        3. Who this book is for
        4. Conventions
        5. Reader feedback
        6. Customer support
          1. Downloading the example code
          2. Errata
          3. Piracy
          4. Questions
      8. 1. Getting Started
        1. RStudio at a glance
        2. Installing RStudio
          1. Installing R
            1. Installing R on Windows and Mac OS X
            2. Installing R on Linux
        3. Building R from source
        4. Building R using Windows
        5. Installing RStudio
          1. Installing RStudio Server
          2. Installing R packages
        6. Overview: A first R session
          1. Keyboard shortcuts
          2. Getting help
            1. What if I uninstall RStudio?
          3. Further reading
          4. Summary
      9. 2. Writing R Scripts and the R Console
        1. Moving around RStudio
          1. Keyboard shortcuts to move around RStudio
        2. Features of the R console
          1. Executing commands
          2. Command history
          3. Command completion
            1. Completion of functions and arguments
            2. Object completion
            3. Completion of filenames
              1. Bracket and quote completion
          4. Keyboard shortcuts for the console
        3. Features of the source editor
          1. A few words on code quality
          2. Editing R scripts
            1. Keyboard shortcuts for file navigation
            2. Keyboard shortcuts for code editing
          3. Syntax highlighting
            1. Adjusting the syntax highlighting theme
          4. Indenting code
          5. Commenting code
          6. Find and replace
        4. Folding, sectioning, and navigation
          1. Code folding
            1. Keyboard shortcuts for code folding
          2. Code navigation
            1. Keyboard shortcuts for code navigation
          3. Code sections
        5. Code execution
          1. Keyboard shortcuts for code execution
        6. Summary
      10. 3. Viewing and Plotting Data
        1. Viewing data and the object browser
        2. Plotting
          1. Zoom
          2. Export
          3. Navigation
        3. Interactive plotting with the manipulate package
          1. The manipulate function
          2. Using more options of manipulate
          3. Advanced topic: retrieving plot parameters from manipulate
        4. Summary
      11. 4. Managing R Projects
        1. R projects
          1. Creating an R project
          2. Directory structure and file manipulations
        2. Version control
          1. Introduction to version control
            1. Installing GIT or Subversion
          2. Version control for single-person projects
            1. GIT
            2. Subversion
        3. Working with a team
        4. Further reading
        5. Summary
      12. 5. Generating Reports
        1. Prerequisites for report generation
        2. Notebook
          1. Notebook options
          2. Publishing a notebook
        3. R Markdown and Rhtml
          1. Workflow for R Markdown
          2. An extended example
          3. An introduction to Markdown syntax
          4. Rhtml
        4. Code chunks
          1. Chunk syntax and options
            1. RMarkdown: .Rmd files
            2. Rhtml: .Rhtml files
            3. LaTeX: .Rnw files
          2. RStudio's chunk support and keyboard shortcuts
        5. LaTeX
        6. Further reading
        7. Summary
      13. 6. Using RStudio Effectively
        1. Additional features for function writing
          1. Function extraction
          2. Function navigation
        2. Introduction to package writing
          1. Prerequisites
          2. Basic structure and workflow
          3. Creating the package directory structure
            1. Documenting functions with Roxygen2
          4. Building your package with devtools
            1. More about the devtools package
            2. Publishing your package
        3. Summary
      14. Index