Learning RStudio for R Statistical Computing
eBook - ePub

Learning RStudio for R Statistical Computing

Mark P. J. van der Loo, Edwin de Jonge

  1. 126 pages
  2. English
  3. ePUB (mobile friendly)
  4. Available on iOS & Android
eBook - ePub

Learning RStudio for R Statistical Computing

Mark P. J. van der Loo, Edwin de Jonge

Book details
Book preview
Table of contents
Citations

About This Book

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.

Approach

A practical tutorial covering how to leverage RStudio functionality to effectively perform R Development, analysis, and reporting with RStudio.

Who this book is for

The book is aimed at R developers and analysts who wish to do R statistical development while taking advantage of RStudio functionality to ease their development efforts. Familiarity with R is assumed. Those who want to get started with R development using RStudio will also find the book useful. Even if you already use R but want to create reproducible statistical analysis projects or extend R with self-written packages, this book shows how to quickly achieve this using RStudio.

Frequently asked questions

How do I cancel my subscription?
Simply head over to the account section in settings and click on “Cancel Subscription” - it’s as simple as that. After you cancel, your membership will stay active for the remainder of the time you’ve paid for. Learn more here.
Can/how do I download books?
At the moment all of our mobile-responsive ePub books are available to download via the app. Most of our PDFs are also available to download and we're working on making the final remaining ones downloadable now. Learn more here.
What is the difference between the pricing plans?
Both plans give you full access to the library and all of Perlego’s features. The only differences are the price and subscription period: With the annual plan you’ll save around 30% compared to 12 months on the monthly plan.
What is Perlego?
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1 million books across 1000+ topics, we’ve got you covered! Learn more here.
Do you support text-to-speech?
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more here.
Is Learning RStudio for R Statistical Computing an online PDF/ePUB?
Yes, you can access Learning RStudio for R Statistical Computing by Mark P. J. van der Loo, Edwin de Jonge in PDF and/or ePUB format, as well as other popular books in Computer Science & Programming. We have over one million books available in our catalogue for you to explore.

Information

Year
2012
ISBN
9781782160601
Edition
1

Learning RStudio for R Statistical Computing


Table of Contents

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

Learning RStudio for R Statistical Computing

Copyright © 2012 Packt Publishing
All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews.
Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the authors, nor Packt Publishing, and its dealers and distributors will be held liable for any damages caused or alleged to be caused directly or indirectly by this book.
Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information.
First published: December 2012
Production Referen...

Table of contents