Book Image

R Object-oriented Programming

By : Black
Book Image

R Object-oriented Programming

By: Black

Overview of this book

This book is designed for people with some experience in basic programming practices. It is also assumed that they have some basic experience using R and are familiar using the command line in an R environment. Our primary goal is to raise a beginner to a more advanced level to make him/her more comfortable creating programs and extending R to solve common problems.
Table of Contents (14 chapters)
4
4. Calculating Probabilities and Random Numbers
12
A. Package Management
13
Index

Summary

An example of an S3 class was defined that can be used to keep track of a set of simulations. The classes include a separate class used to create a single simulation. The single simulation can be an approximation of either a discrete or continuous stochastic process. Another class is developed that can keep track of the results from a large number of simulations.

In the next chapter, we look at another extended example. The focus in the next chapter is on creating a set of S3 classes to provide a general way to handle regression tasks for a variety of data types. You can download this chapter from https://www.packtpub.com/sites/default/files/downloads/6682OS_Case_Study_Regression.pdf.