Skip to Content
R in a Nutshell, 2nd Edition
book

R in a Nutshell, 2nd Edition

by Joseph Adler
October 2012
Beginner to intermediate
721 pages
21h 38m
English
O'Reilly Media, Inc.
Content preview from R in a Nutshell, 2nd Edition

base

This package contains the basic functions that let R function as a language: arithmetic, input/output, basic programming support, and so on. Its contents are available through inheritance from any environment.

Functions

FunctionDescription
!Not operator.
!=Not equal operator.
$, $<-Select or set named element from a list.
%%Modulo operator.
%*%Binary operator to multiply two matrices, if they are conformable.
%/%Integer division operator.
%in%Binary operator that returns a logical vector indicating if there is a match or not for its left operand.
%o%Operator to calculate the outer product of two arrays.
%x%Operator to calculate the Kronecker product of two arrays.
&Operator that performs elementwise logical AND.
&&Operator that performs logical AND, evaluating expressions from left to right until the result is determined.
*Multiplication operator.
+Addition operator.
-Unary negation or binary subtraction operator.
/Binary division operator.
:Generates regular sequences.
::Accesses an exported variable in a namespace.
:::Accesses an internal variable in a namespace.
<Less-than operator.
>Greater-than operator.
>=Greater-than-or-equal-to operator.
<=Less-than-or-equal-to operator.
==Equality operator.
@Extracts the contents of an slot in an object with a formal (S4) class structure.
ArgReturns argument of a complex value.
ConjReturns conjugate of a complex value.
Cstack_infoReports information on the C stack size and usage (if available).
Encoding, Encoding<-Read or set the declared encodings for a character ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

R in a Nutshell

R in a Nutshell

Joseph Adler
The R Book, 2nd Edition

The R Book, 2nd Edition

Michael J. Crawley
The R Book

The R Book

Michael J. Crawley
R Packages

R Packages

Hadley Wickham

Publisher Resources

ISBN: 9781449358204Errata Page