Learn R Programming

⚠️There's a newer version (3.6.2) of this package.Take me there.

base (version 3.5.0)

The R Base Package

Description

Base R functions.

Copy Link

Version

Version

3.5.0

License

Part of R 3.5.0

Last Published

December 12th, 2019

Functions in base (3.5.0)

Constants

Built-in Constants
Control

Control Flow
Bessel

Bessel Functions
CallExternal

Modern Interfaces to C/C++ code
Dates

Date Class
Defunct

Marking Objects as Defunct
Foreign

Foreign Function Interface
Hyperbolic

Hyperbolic Functions
Deprecated

Marking Objects as Deprecated
Encoding

Read or Set the Declared Encodings for a Character Vector
InternalMethods

Internal Generic Functions
La_library

LAPACK Library
DateTimeClasses

Date-Time Classes
LongVectors

Long Vectors
Memory-limits

Memory Limits in R
Cstack_info

Report Information on C Stack Size and Usage
RdUtils

Utilities for Processing Rd Files
Memory

Memory Available for Data Storage
Recall

Recursive Calling
MathFun

Miscellaneous Mathematical Functions
Startup

Initialization at Start of an R Session
Syntax

Operator Syntax and Precedence
Colon

Colon Operator
Comparison

Relational Operators
Random.user

User-supplied Random Number Generation
Random

Random Number Generation
EnvVar

Environment Variables
Sys.which

Find Full Paths to Executables
Trig

Trigonometric Functions
Sys.getenv

Get Environment Variables
Extract

Extract or Replace Parts of an Object
Sys.getpid

Get the Process ID of the R Session
ISOdatetime

Date-time Conversion Functions from Numeric Representations
Extract.data.frame

Extract or Replace Parts of a Data Frame
Internal

Call an Internal Function
R.Version

Version Information
abbreviate

Abbreviate Strings
Extract.factor

Extract or Replace Parts of a Factor
log

Logarithms and Exponentials
NA

‘Not Available’ / Missing Values
NULL

The Null Object
all.equal

Test if Two Objects are (Nearly) Equal
args

Argument List of a Function
Logic

Logical Operators
Primitive

Look Up a Primitive Function
all.names

Find All Names in an Expression
Arithmetic

Arithmetic Operators
Quotes

Quotes
AsIs

Inhibit Interpretation/Conversion of Objects
attr

Object Attributes
builtins

Returns the Names of All Built-in Objects
Sys.localeconv

Find Details of the Numerical and Monetary Representations in the Current Locale
attributes

Object Attribute Lists
Sys.readlink

Read File Symbolic Links
array

Multi-way Arrays
agrep

Approximate String Matching (Fuzzy Matching)
body

Access to and Manipulation of the Body of a Function
NumericConstants

Numeric Constants
Ops.Date

Operators on the Date Class
assignOps

Assignment Operators
attach

Attach Set of R Objects to Search Path
Round

Rounding of Numbers
base-defunct

Defunct Functions in Package base
by

Apply a Function to a Data Frame Split by Factors
Special

Special Functions of Mathematics
bquote

Partial substitution in expressions
all

Are All Values True?
Sys.setFileTime

Set File Time
row+colnames

Row and Column Names
as.Date

Date Conversion Functions to and from Character
base-deprecated

Deprecated Functions in Package base
as.POSIX*

Date-time Conversion Functions
callCC

Call With Current Continuation
as.function

Convert Object to Function
Extremes

Maxima and Minima
Foreign-internal

Internal Versions of the Foreign Function Interface
dimnames

Dimnames of an Object
La_version

LAPACK Version
Last.value

Value of Last Evaluated Expression
Sys.setenv

Set or Unset Environment Variables
colSums

Form Row and Column Sums and Means
assign

Assign a Value to a Name
base-internal

Internal Objects in Package base
cut

Convert Numeric to Factor
Paren

Parentheses and Braces
.Platform

Platform Specific Variables
Rhome

Return the R Home Directory
Reserved

Reserved Words in R
capabilities

Report Capabilities of this Build of R
base-package

The R Base Package
UseMethod

Class Methods
charmatch

Partial String Matching
data.class

Object Classes
Vectorize

Vectorize a Scalar Function
chol2inv

Inverse from Choleski (or QR) Decomposition
difftime

Time Intervals / Differences
class

Object Classes
col

Column Indexes
debug

Debug a Function
data.frame

Data Frames
crossprod

Matrix Crossproduct
c

Combine Values into a Vector or List
apply

Apply Functions Over Array Margins
curlGetHeaders

Retrieve Headers from URLs
append

Vector Merging
call

Function Calls
autoload

On-demand Loading of Packages
backsolve

Solve an Upper or Lower Triangular System
basename

Manipulate File Paths
commandArgs

Extract Command Line Arguments
list

Lists -- Generic and Dotted Pairs
.bincode

Bin a Numeric Vector
character

Character Vectors
eigen

Spectral Decomposition of a Matrix
conflicts

Search for Masked Objects on the Search Path
Sys.glob

Wildcard Expansion on File Paths
Sys.info

Extract System and User Information
diff

Lagged Differences
chartr

Character Translation and Casefolding
conditions

Condition Handling and Recovery
double

Double-Precision Vectors
cut.POSIXt

Convert a Date or Date-Time Object to a Factor
cat

Concatenate and Print
do.call

Execute a Function Call
cbind

Combine R Objects by Rows or Columns
deparse

Expression Deparsing
cumsum

Cumulative Sums, Products, and Extremes
copyright

Copyrights of Files Used to Build R
connections

Functions to Manipulate Connections (Files, URLs, ...)
duplicated

Determine Duplicate Elements
dyn.load

Foreign Function Interface
droplevels

Drop Unused Levels from Factors
deparseOpts

Options for Expression Deparsing
gc

Garbage Collection
file.access

Ascertain File Accessibility
interactive

Is R Running Interactively?
expression

Unevaluated Expressions
Sys.sleep

Suspend Execution for a Time Interval
ls

List Objects
dots

…, ..1, etc used in Functions
dim

Dimensions of an Object
char.expand

Expand a String with Respect to a Target Table
date

System Date and Time
Sys.time

Get Current Date and Time
detach

Detach Objects from the Search Path
dump

Text Representations of R Objects
format.info

format(.) Information
contributors

R Project Contributors
dcf

Read and Write Data in DCF Format
any

Are Some Values True?
forceAndCall

Call a function with Some Arguments Forced
mat.or.vec

Create a Matrix or a Vector
aperm

Array Transposition
file.choose

Choose a File Interactively
row

Row Indexes
formatC

Formatting Using C-style Formats
det

Calculate the Determinant of a Matrix
format

Encode in a Common Format
expand.grid

Create a Data Frame from All Combinations of Factor Variables
hexmode

Display Numbers in Hexadecimal
delayedAssign

Delay Evaluation
getDLLRegisteredRoutines

Reflectance Information for C/Fortran routines in a DLL
groupGeneric

S3 Group Generic Functions
files2

Manipulation of Directories and File Permissions
funprog

Common Higher-Order Functions in Functional Programming Languages
grouping

Grouping Permutation
find.package

Find Packages
eapply

Apply a Function Over Values in an Environment
eval

Evaluate an (Unevaluated) Expression
strtoi

Convert Strings to Integers
load

Reload Saved Datasets
interaction

Compute Factor Interactions
kronecker

Kronecker Products on Arrays
as.data.frame

Coerce to a Data Frame
extSoftVersion

Report Versions of Third-Party Software
kappa

Compute or Estimate the Condition Number of a Matrix
gctorture

Torture Garbage Collector
exists

Is an Object Defined?
findInterval

Find Interval Numbers or Indices
grep

Pattern Matching and Replacement
function

Function Definition
formals

Access to and Manipulation of the Formal Arguments
l10n_info

Localization Information
lengths

Lengths of List or Vector Elements
icuSetCollate

Setup Collation by ICU
dontCheck

Identity Function to Suppress Checking
as.environment

Coerce to an Environment Object
gc.time

Report Time Spent in Garbage Collection
isS4

Test for an S4 object
file.show

Display One or More Text Files
force

Force Evaluation of an Argument
bindenv

Binding and Environment Locking, Active Bindings
getNativeSymbolInfo

Obtain a Description of one or more Native (C/Fortran) Symbols
files

File Manipulation
labels

Find Labels from Object
factor

Factors
grepRaw

Pattern Matching for Raw Vectors
getLoadedDLLs

Get DLLs Loaded in Current Session
list2env

From A List, Build or Add To an Environment
iconv

Convert Character Vector between Encodings
pretty

Pretty Breakpoints
identical

Test Objects for Exact Equality
bitwise

Bitwise Logical Operations
lazyLoad

Lazy Load a Database of R Objects
is.unsorted

Test if an Object is Not Sorted
match

Value Matching
lower.tri

Lower and Upper Triangular Part of a Matrix
memory.profile

Profile the Usage of Cons Cells
ns-reflect.Rd

Namespace Reflection Support
identity

Identity Function
is.single

Is an Object of Single Precision Type?
ns-load

Loading and Unloading Name Spaces
is.function

Is an Object of Type (Primitive) Function?
gzcon

(De)compress I/O Through Connections
merge

Merge Two Data Frames
is.language

Is an Object a Language Object?
isSymmetric

Test if a Matrix or other Object is Symmetric (Hermitian)
chkDots

Warn About Extraneous Arguments in the "..." of Its Caller
message

Diagnostic Messages
print.default

Default Printing
names

The Names of an Object
libPaths

Search Paths for Packages
gettext

Translate Text Messages
lapply

Apply a Function over a List or Vector
memCompress

In-memory Compression and Decompression
chol

The Choleski Decomposition
readLines

Read Text Lines from a Connection
diag

Matrix Diagonals
length

Length of an Object
jitter

‘Jitter’ (Add Noise) to Numbers
browser

Environment Browser
order

Ordering Permutation
invisible

Change the Print Mode to Invisible
browserText

Functions to Retrieve Values Supplied by Calls to the Browser
is.finite

Finite, Infinite and NaN Numbers
is.R

Are we using R, rather than S?
data.matrix

Convert a Data Frame to a Numeric Matrix
on.exit

Function Exit Code
levels

Levels Attributes
nargs

The Number of Arguments to a Function
environment

Environment Access
matmult

Matrix Multiplication
pos.to.env

Convert Positions in the Search Path to Environments
make.names

Make Syntactically Valid Names
list.files

List the Files in a Directory/Folder
match.call

Argument Matching
complex

Complex Numbers and Basic Functionality
match.arg

Argument Verification Using Partial Matching
match.fun

Extract a Function Specified by Name
print

Print Values
comment

Query or Set a "comment" Attribute
sink

Send R Output to a File
rep

Replicate Elements of Vectors and Lists
sQuote

Quote Text
missing

Does a Formal Argument have a Value?
proc.time

Running Time of R
dput

Write an Object to a File or Recreate it
gl

Generate Factor Levels
drop

Drop Redundant Extent Information
dataframeHelpers

Data Frame Auxiliary Functions
logical

Logical Vectors
locales

Query or Set Aspects of the Locale
outer

Outer Product of Arrays
nchar

Count the Number of Characters (or Bytes or Width)
.Device

Lists of Open/Active Graphics Devices
norm

Compute the Norm of a Matrix
mean

Arithmetic Mean
make.unique

Make Character Strings Unique
mode

The (Storage) Mode of an Object
toString

Convert an R Object to a Character String
ns-topenv

Top Level Environment
noquote

Class for ‘no quote’ Printing of Character Strings
rawConnection

Raw Connections
nlevels

The Number of Levels of a Factor
ifelse

Conditional Element Selection
paste

Concatenate Strings
numeric

Numeric Vectors
name

Names and Symbols
prmatrix

Print Matrices, Old-style
getwd

Get or Set Working Directory
encodeString

Encode Character Vector as for Printing
replace

Replace Values in a Vector
format.pval

Format P Values
options

Options Settings
file.path

Construct Path to File
nrow

The Number of Rows/Columns of an Array
reg.finalizer

Finalization of Objects
ns-internals

Namespace Internals
raw

Raw Vectors
parse

Parse Expressions
file.info

Extract File Information
ns-hooks

Hooks for Namespace Events
remove

Remove Objects from a Specified Environment
readChar

Transfer Character Strings To and From Connections
qr

The QR Decomposition of a Matrix
print.data.frame

Printing Data Frames
strwrap

Wrap Character Strings to Format Paragraphs
scale

Scaling and Centering of Matrix-like Objects
split

Divide into Groups and Reassemble
readRDS

Serialization Interface for Single Objects
readline

Read a Line from the Terminal
rowsum

Give Column Sums of a Matrix or Data Frame, Based on a Grouping Variable
search

Give Search Path for R Objects
stop

Stop Function Execution
ns-dblcolon

Double Colon and Triple Colon Operators
slice.index

Slice Indexes in an Array
get

Return the Value of a Named Object
quit

Terminate an R Session
textConnection

Text Connections
sys.parent

Functions to Access the Function Call Stack
source

Read R Code from a File, a Connection or Expressions
range

Range of Values
QR.Auxiliaries

Reconstruct the Q, R, or X Matrices from a QR Object
svd

Singular Value Decomposition of a Matrix
integer

Integer Vectors
sets

Set Operations
formatDL

Format Description Lists
row.names

Get and Set Row Names for Data Frames
octmode

Display Numbers in Octal
shQuote

Quote Strings for Use in OS Shells
path.expand

Expand File Paths
readRenviron

Set Environment Variables from a File
strptime

Date-time Conversion Functions to and from Character
getCallingDLL

Compute DLL for Native Interface Call
prod

Product of Vector Elements
pcre_config

Report Configuration Options for PCRE
matrix

Matrices
rawConversion

Convert to or from Raw Vectors
seek

Functions to Reposition Connections
slotOp

Extract or Replace A Slot
scan

Read Data Values
substr

Substrings of a Character Vector
strrep

Repeat the Elements of a Character Vector
setTimeLimit

Set CPU and/or Elapsed Time Limits
regex

Regular Expressions as used in R
readBin

Transfer Binary Data To and From Connections
substitute

Substituting and Quoting Expressions
system2

Invoke a System Command
stopifnot

Ensure the Truth of R Expressions
maxCol

Find Maximum Position in Matrix
switch

Select One of a List of Alternatives
which

Which indices are TRUE?
sign

Sign Function
round.POSIXt

Round / Truncate Data-Time Objects
serialize

Simple Serialization Interface
with

Evaluate an Expression in a Data Environment
transform

Transform an Object, for Example a Data Frame
sprintf

Use C-style String Formatting Commands
regmatches

Extract or Replace Matched Substrings
taskCallbackNames

Query the Names of the Current Internal Top-Level Task Callbacks
socketSelect

Wait on Socket Connections
sweep

Sweep out Array Summaries
subset

Subsetting Vectors, Matrices and Data Frames
library

Loading/Attaching and Listing of Packages
is.object

Is an Object ‘internally classed’?
t

Matrix Transpose
libcurlVersion

Report Version of libcurl
taskCallbackManager

Create an R-level Task Callback Manager
sequence

Create A Vector of Sequences
traceback

Get and Print Call Stacks
is.recursive

Is an Object Atomic or Recursive?
srcfile

References to Source Files and Code
weekdays

Extract Parts of a POSIXt or Date Object
license

The R License Terms
strsplit

Split the Elements of a Character Vector
seq

Sequence Generation
tilde

Tilde Operator
showConnections

Display Connections
trimws

Remove Leading/Trailing Whitespace
tracemem

Trace Copying of Objects
tabulate

Tabulation for Vectors
validUTF8

Check if a Character Vector is Validly Encoded
which.min

Where is the Min() or Max() or first TRUE or FALSE ?
zpackages

Listing of Packages
sum

Sum of Vector Elements
zapsmall

Rounding of Numbers
tempfile

Create Names for Temporary Files
.Machine

Numerical Characteristics of the Machine
summary

Object Summaries
library.dynam

Loading DLLs from Packages
try

Try an Expression Allowing Error Recovery
table

Cross Tabulation and Table Creation
margin.table

Compute table margin
system.file

Find Names of R System Files
rank

Sample Ranks
timezones

Time Zones
mapply

Apply a Function to Multiple List or Vector Arguments
system.time

CPU Time Used
normalizePath

Express File Paths in Canonical Form
trace

Interactive Tracing and Debugging of Calls to a Function or Method
writeLines

Write Lines to a Connection
vector

Vectors
withVisible

Return both a Value and its Visibility
xtfrm

Auxiliary Function for Sorting and Ranking
unlist

Flatten Lists
unique

Extract Unique Elements
unname

Remove names or dimnames
utf8Conversion

Convert Integer Vectors to or from UTF-8-encoded Character Vectors
typeof

The Type of an Object
NotYet

Not Yet Implemented Functions and Unused Arguments
rapply

Recursively Apply a Function to a List
write

Write Data to a File
pmatch

Partial String Matching
userhooks

Functions to Get and Set Hooks for Load, Attach, Detach and Unload
numeric_version

Numeric Versions
.Script

Scripting Language Interface
prop.table

Express Table Entries as Fraction of Marginal Table
polyroot

Find Zeros of a Real or Complex Polynomial
sample

Random Samples and Permutations
seq.POSIXt

Generate Regular Sequences of Times
pushBack

Push Text Back on to a Connection
rle

Run Length Encoding
rev

Reverse Elements
tapply

Apply a Function Over a Ragged Array
sys.source

Parse and Evaluate Expressions from a File
seq.Date

Generate Regular Sequences of Dates
save

Save R Objects
solve

Solve a System of Equations
standardGeneric

Formal Method System -- Dispatching S4 Methods
sort

Sorting or Ordering Vectors
structure

Attribute Specification
warnings

Print Warning Messages
strtrim

Trim Character Strings to Specified Display Widths
system

Invoke a System Command
startsWith

Does String Start or End With Another String?
taskCallback

Add or Remove a Top-Level Task Callback
unlink

Delete Files and Directories
zutils

Miscellaneous Internal/Programming Utilities
warning

Warning Messages