Book Image

Learning RStudio for R Statistical Computing

Book Image

Learning RStudio for R Statistical Computing

Overview of this book

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 (13 chapters)

Chapter 6. Using RStudio Effectively

This chapter discusses function writing and navigation with RStudio and gives a short introduction to authoring R packages. Some background on R functions and package structure will be given as well.

Functions are very much at the heart of the R language. As your knowledge and experience with R matures, you'll notice that functions are not only to be called from the command line or script. They can be passed as arguments to other functions. Hadley Wickham's popular plyr package, for instance, makes extensive use of this feature. Writing functions is one of the most important things there is to learn about R, so in the following section, we have given a small introduction to R functions and discussed RStudio's supporting features. After that, we continue with a short introduction to package writing.