O'Reilly logo

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

Getting Started with RStudio

Book Description

This e-book will introduce users to the RStudio framework for using and programming R, the widely used open source statistical computing environment. The RStudio framework, is an open source project that brings together many powerful coding tools into an intuitive interface. It runs under all major platforms (Windows, Mac, Linux) and through a web browser (using the server installation). This text should appeal to newer R users and students who want to explore the interface to get the most out of R and to older R users who want to use a more modern looking development environment. The book will serve as both a resource to look up specific features provided by RStudio and as an introduction to the following processes with R: data analysis, programming and report generation.

Table of Contents

  1. Special Upgrade Offer
  2. A Note Regarding Supplemental Files
  3. Preface
    1. Conventions Used in This Book
    2. Using Code Examples
    3. SafariĀ® Books Online
    4. How to Contact Us
    5. Content Updates
      1. March 20, 2012
  4. 1. Overview, Installation
    1. What is R?
    2. What is an IDE?
    3. Why RStudio?
    4. Using RStudio
      1. Desktop Version
      2. Server Version
      3. Which Workspace?
      4. Projects
      5. Which R?
    5. Layout of the Components
      1. Keyboard Shortcuts
      2. The Options Dialog
    6. Installing RStudio
      1. Updating RStudio
  5. 2. Case Study: Data Cleaning
    1. Using Projects
    2. Reading in a Data File
    3. Tab Completion
    4. Workspace Component
      1. Using the Right Class to Store Data
    5. Data Cleaning
    6. Using the Code Editor to Write R Scripts
    7. Using Add-On Packages
    8. Graphics
      1. Command History
    9. All Finished, for Now
  6. 3. The Console and Related Components
    1. Entering Commands
      1. Automatic Insertion of Matching Pairs
      2. R Script Files
    2. Command-Line Conveniences
      1. Tab Completion
      2. Keyboard Shortcuts
      3. Command History
        1. Searching the history stack
        2. History Browser
    3. Workspace Browser
      1. Editing and Viewing Objects
      2. Importing Data Sets
    4. The Help Page Viewer
    5. Graphics in RStudio
      1. The Plots Browser
      2. Interactivity
      3. The manipulate Package for RStudio
    6. External Programs (Desktop Version)
  7. 4. Case Study: Creating a Package
    1. Creating Functions from Script Files
    2. A Package Skeleton
    3. Documenting Functions With roxygen2
    4. The devtools Package
    5. Package Data
    6. Package Examples
    7. Adding Tests
    8. Building and Installing the Package
  8. 5. Programming R with RStudio
    1. Source Code Editor
      1. Basics
        1. Keyboard shortcuts
      2. R Programming Features
        1. Syntax highlighting
        2. Bracket matching
        3. Automatic indenting
        4. Code completion and usage information
        5. Extract function
        6. Run or source commands
      3. Navigation
        1. Jump to function
        2. Go to file/function
      4. The File Browser
        1. File upload
      5. Debugging R Code in RStudio
    2. Package Maintenance
    3. Organizing Activities with Projects
      1. Version Control with RStudio
        1. Getting started with version control
        2. Using Git to keep a history of changes
        3. Collaborating with Git
    4. Case Study: Report Generation using Sweave
  9. Index
  10. About the Author
  11. Special Upgrade Offer
  12. Copyright