Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying R Object-oriented Programming
  • Table Of Contents Toc
  • Feedback & Rating feedback
R Object-oriented Programming

R Object-oriented Programming

By : Black
4.4 (9)
close
close
R Object-oriented Programming

R Object-oriented Programming

4.4 (9)
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)
close
close
4
4. Calculating Probabilities and Random Numbers
12
A. Package Management
13
Index

Conventions

In this book, you will find a number of styles of text that distinguish between different kinds of information. Here are some examples of these styles, and an explanation of their meaning.

Code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles are shown as follows: "A list is created using the list command, and a variable can be tested or coerced using the is.list and as.list commands."

A block of code is set as follows:

> x = rnorm(5,mean=10,sd=3)
> x
[1] 11.172719  8.784284 10.074035  5.735171 10.800138
> pnorm(abs(x-10),mean=0,sd=3)-pnorm(-abs(x-10),mean=0,sd=3)
[1] 0.30413363 0.31469803 0.01968849 0.84486037 0.21030971
>

When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:

> v <- c(1,3,5,7,-10)
> v
[1]   1   3   5   7 -10
> v[4]
[1] 7
> v[2] <- v[1]-v[5]
> v
[1]   1  11   5   7 -10

New terms and important words are shown in bold.

Note

Warnings or important notes appear in a box like this.

Tip

Tips and tricks appear like this.

Unlock full access

Continue reading for free

A Packt free trial gives you instant online access to our library of over 7000 practical eBooks and videos, constantly updated with the latest in tech

Create a Note

Modal Close icon
You need to login to use this feature.
notes
bookmark search playlist font-size

Change the font size

margin-width

Change margin width

day-mode

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Delete Bookmark

Modal Close icon
Are you sure you want to delete it?
Cancel
Yes, Delete

Delete Note

Modal Close icon
Are you sure you want to delete it?
Cancel
Yes, Delete

Edit Note

Modal Close icon
Write a note (max 255 characters)
Cancel
Update Note

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY