Book Image

R Statistical Application Development by Example Beginner's Guide

By : Prabhanjan Narayanachar Tattar
Book Image

R Statistical Application Development by Example Beginner's Guide

By: Prabhanjan Narayanachar Tattar

Overview of this book

<p>"R Statistical Application Development by Example Beginner’s Guide" explores statistical concepts and the R software, which are well integrated from the word go. This demarcates the separate learning of theory and applications and hence the title begins with “R Statistical …”. Almost every concept has an R code going with it which exemplifies the strength of R and applications. Thus, the reader first understands the data characteristics, descriptive statistics, and the exploratory attitude which gives the first firm footing of data analysis. Statistical inference and the use of simulation which makes use of the computational power complete the technical footing of statistical methods. Regression modeling, linear, logistic, and CART, builds the essential toolkit which helps the reader complete complex problems in the real world.<br /><br />The reader will begin with a brief understanding of the nature of data and end with modern and advanced statistical models like CART. Every step is taken with DATA and R code.<br /><br />The data analysis journey begins with exploratory analysis, which is more than simple descriptive data summaries, and then takes the traditional path up to linear regression modeling, and ends with logistic regression, CART, and spatial statistics.<br /><br />True to the title R Statistical Application Development by Example Beginner’s Guide, the reader will enjoy the examples and R software.</p>
Table of Contents (18 chapters)
R Statistical Application Development by Example Beginner's Guide
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
References
Index

Time for action – understanding constants, vectors, and basic arithmetic


We will look at a few important and interesting examples. You will understand the structure of vectors in R and would also be able to perform the basic arithmetic related to this requirement

  1. Key in LETTERS at the R console and hit the Enter key.

  2. Key in letters at the R console and hit the Enter key.

  3. To obtain the first five and the last five alphabets, try the following code: LETTERS[c(1:5,22:26)] and letters[c(1:5,22:26)].

  4. Month names and their abbreviations are available in the base package and explore them using ?Constants at the console.

  5. Selected month names and their abbreviations can be obtained using month.abb[c(1:3,8:10)] and month.name[c(1:3,8:10)]. Also, the value of pi in R can found by entering pi at the console.

  6. To generate a vector of length 4, without specifying the class, try vector(length=4). In specific classes, vector objects can be generated by declaring the "mode" values for a vector object. That is,...