Learn R Programming

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

base (version 3.3.2)

The R Base Package

Description

Base R functions.

Copy Link

Version

Version

3.3.2

License

Part of R 3.3.2

Last Published

December 12th, 2019

Functions in base (3.3.2)

all

Are All Values True?
abbreviate

Abbreviate Strings
agrep

Approximate String Matching (Fuzzy Matching)
any

Are Some Values True?
all.names

Find All Names in an Expression
append

Vector Merging
all.equal

Test if Two Objects are (Nearly) Equal
apply

Apply Functions Over Array Margins
aperm

Array Transposition
args

Argument List of a Function
Arithmetic

Arithmetic Operators
as.data.frame

Coerce to a Data Frame
array

Multi-way Arrays
as.Date

Date Conversion Functions to and from Character
assign

Assign a Value to a Name
AsIs

Inhibit Interpretation/Conversion of Objects
as.POSIX*

Date-time Conversion Functions
assignOps

Assignment Operators
as.environment

Coerce to an Environment Object
as.function

Convert Object to Function
autoload

On-demand Loading of Packages
basename

Manipulate File Paths
base-defunct

Defunct Functions in Package
base-deprecated

Deprecated Functions in Package
attach

Attach Set of R Objects to Search Path
attributes

Object Attribute Lists
base-package

base-internal

Internal Objects in Package
attr

Object Attributes
backsolve

Solve an Upper or Lower Triangular System
body

Access to and Manipulation of the Body of a Function
browserText

bitwise

Bitwise Logical Operations
by

Apply a Function to a Data Frame Split by Factors
builtins

Returns the Names of All Built-in Objects
.bincode

Bin a Numeric Vector
Bessel

Bessel Functions
bindenv

Binding and Environment Locking, Active Bindings
bquote

Partial substitution in expressions
browser

Environment Browser
c

Combine Values into a Vector or List
call

Function Calls
capabilities

Report Capabilities of this Build of R
callCC

Call With Current Continuation
cat

Concatenate and Print
charmatch

Partial String Matching
character

Character Vectors
cbind

Combine R Objects by Rows or Columns
CallExternal

Modern Interfaces to C/C++ code
char.expand

Expand a String with Respect to a Target Table
class

Object Classes
col

Column Indexes
chartr

Character Translation and Casefolding
chol2inv

Inverse from Choleski (or QR) Decomposition
chol

The Choleski Decomposition
chkDots

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

Form Row and Column Sums and Means
Colon

Colon Operator
row+colnames

Row and Column Names
commandArgs

Extract Command Line Arguments
Constants

Built-in Constants
contributors

R Project Contributors
conditions

Condition Handling and Recovery
complex

Complex Numbers and Basic Functionality
deparse

Expression Deparsing
delayedAssign

Delay Evaluation
dim

Dimensions of an Object
data.class

Object Classes
dimnames

Dimnames of an Object
data.frame

Data Frames
det

Calculate the Determinant of a Matrix
detach

Detach Objects from the Search Path
comment

Query or Set a
Comparison

Relational Operators
dataframeHelpers

Data Frame Auxiliary Functions
data.matrix

Convert a Data Frame to a Numeric Matrix
debug

Debug a Function
Defunct

Marking Objects as Defunct
do.call

Execute a Function Call
dontCheck

Identity Function to Suppress Checking
conflicts

Search for Masked Objects on the Search Path
connections

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

Convert Numeric to Factor
cut.POSIXt

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

System Date and Time
Dates

Date Class
diff

Lagged Differences
cumsum

Cumulative Sums, Products, and Extremes
difftime

Time Intervals / Differences
curlGetHeaders

DateTimeClasses

Date-Time Classes
dcf

Read and Write Data in DCF Format
.Device

eapply

Apply a Function Over Values in an Environment
dyn.load

Foreign Function Interface
diag

Matrix Diagonals
format.pval

Format P Values
format

Encode in a Common Format
eigen

Spectral Decomposition of a Matrix
encodeString

Encoding

Read or Set the Declared Encodings for a Character Vector
file.choose

Choose a File Interactively
environment

Environment Access
Control

Control Flow
file.info

Extract File Information
copyright

Copyrights of Files Used to Build R
Cstack_info

Report Information on C Stack Size and Usage
crossprod

Matrix Crossproduct
deparseOpts

Options for Expression Deparsing
Deprecated

Marking Objects as Deprecated
dump

Text Representations of R Objects
duplicated

Determine Duplicate Elements
exists

Is an Object Defined?
getwd

Get or Set Working Directory
gettext

Translate Text Messages
expand.grid

Create a Data Frame from All Combinations of Factor Variables
iconv

Convert Character Vector between Encodings
Internal

Call an Internal Function
icuSetCollate

Setup Collation by ICU
InternalMethods

Internal Generic Functions
ISOdatetime

Date-time Conversion Functions from Numeric Representations
libcurlVersion

libPaths

Search Paths for Packages
is.R

Are we using R, rather than S?
Extract.data.frame

Extract or Replace Parts of a Data Frame
expression

Unevaluated Expressions
force

Force Evaluation of an Argument
files2

Manipulaton of Directories and File Permissions
files

File Manipulation
forceAndCall

Call a function with Some Arguments Forced
formatC

Formatting Using C-style Formats
grepRaw

Pattern Matching for Raw Vectors
groupGeneric

S3 Group Generic Functions
formatDL

Format Description Lists
identity

Identity Function
identical

Test Objects for Exact Equality
is.finite

Finite, Infinite and NaN Numbers
invisible

Change the Print Mode to Invisible
log

Logarithms and Exponentials
Logic

Logical Operators
missing

Does a Formal Argument have a Value?
gctorture

Torture Garbage Collector
noquote

Class for
norm

Compute the Norm of a Matrix
mode

The (Storage) Mode of an Object
get

Return the Value of a Named Object
is.single

Is an Object of Single Precision Type?
is.unsorted

Test if an Object is Not Sorted
labels

Find Labels from Object
La_version

lapply

Apply a Function over a List or Vector
Last.value

Value of Last Evaluated Expression
license

The R License Terms
formals

Access to and Manipulation of the Formal Arguments
file.access

Ascertain File Accessibility
factor

Factors
getLoadedDLLs

Get DLLs Loaded in Current Session
gc.time

Report Time Spent in Garbage Collection
gc

Garbage Collection
format.info

format(.) Information
hexmode

Display Numbers in Hexadecimal
getNativeSymbolInfo

Hyperbolic

Hyperbolic Functions
LongVectors

Long Vectors
logical

Logical Vectors
ls

List Objects
lower.tri

Lower and Upper Triangular Part of a Matrix
merge

Merge Two Data Frames
matmult

Matrix Multiplication
matrix

Matrices
message

Diagnostic Messages
numeric_version

Numeric Versions
numeric

Numeric Vectors
drop

Drop Redundant Extent Information
droplevels

droplevels
eval

Evaluate an (Unevaluated) Expression
EnvVar

Environment Variables
file.path

Construct Path to File
file.show

Display One or More Text Files
Foreign-internal

Internal Versions of the Foreign Function Interface
Foreign

Foreign Function Interface
getCallingDLL

Compute DLL for Native Interface Call
double

Double-Precision Vectors
getDLLRegisteredRoutines

Reflectance Information for C/Fortran routines in a DLL
dput

Write an Object to a File or Recreate it
Extract

Extract or Replace Parts of an Object
Extract.factor

Extract or Replace Parts of a Factor
Extremes

Maxima and Minima
extSoftVersion

find.package

Find Packages
findInterval

Find Interval Numbers or Indices
function

Function Definition
Random.user

User-supplied Random Number Generation
funprog

Common Higher-Order Functions in Functional Programming Languages
readRenviron

Random

Random Number Generation
rle

Run Length Encoding
Recall

Recursive Calling
remove

Remove Objects from a Specified Environment
Round

Rounding of Numbers
round.POSIXt

Round / Truncate Data-Time Objects
shQuote

Quote Strings for Use in OS Shells
on.exit

Function Exit Code
showConnections

Display Connections
pos.to.env

Convert Positions in the Search Path to Environments
polyroot

Find Zeros of a Real or Complex Polynomial
Ops.Date

Operators on the Date Class
pushBack

Push Text Back on to a Connection
prop.table

Express Table Entries as Fraction of Marginal Table
reg.finalizer

Finalization of Objects
regex

Regular Expressions as used in R
seq.Date

Generate Regular Sequences of Dates
seek

Functions to Reposition Connections
Special

Special Functions of Mathematics
split

Divide into Groups and Reassemble
sum

Sum of Vector Elements
sQuote

Quote Text
sprintf

Use C-style String Formatting Commands
summary

Object Summaries
system.file

Find Names of R System Files
system.time

CPU Time Used
transform

Transform an Object, for Example a Data Frame
tilde

Tilde Operator
timezones

Time Zones
unname

Remove
Trig

Trigonometric Functions
weekdays

Extract Parts of a POSIXt or Date Object
UseMethod

Class Methods
which

Which indices are TRUE?
is.object

Is an Object
jitter

Jitter
is.recursive

Is an Object Atomic or Recursive?
kappa

Compute or Estimate the Condition Number of a Matrix
library

Loading/Attaching and Listing of Packages
library.dynam

Loading DLLs from Packages
margin.table

Compute table margin
list2env

From A List, Build or Add To an Environment
mapply

Apply a Function to Multiple List or Vector Arguments
list

Lists -- Generic and Dotted Pairs
sort

Sorting or Ordering Vectors
strptime

Date-time Conversion Functions to and from Character
source

Read R Code from a File or a Connection
strsplit

Split the Elements of a Character Vector
strrep

Repeat the Elements of a Character Vector
strtoi

Convert Strings to Integers
Sys.setenv

Set or Unset Environment Variables
Sys.glob

Wildcard Expansion on File Paths
Sys.getpid

Get the Process ID of the R Session
Sys.setFileTime

grouping

Grouping Permutation
ifelse

Conditional Element Selection
gzcon

is.function

Is an Object of Type (Primitive) Function?
integer

Integer Vectors
is.language

Is an Object a Language Object?
l10n_info

Localization Information
kronecker

Kronecker Products on Arrays
lengths

Lengths of List or Vector Elements
levels

Levels Attributes
table

Cross Tabulation and Table Creation
toString

Convert an R Object to a Character String
tabulate

Tabulation for Vectors
trace

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

Flatten Lists
unlink

Delete Files and Directories
memCompress

In-memory Compression and Decompression
names

The Names of an Object
Memory-limits

Memory Limits in R
nargs

The Number of Arguments to a Function
ns-load

Loading and Unloading Name Spaces
order

Ordering Permutation
options

Options Settings
ns-reflect.Rd

Namespace Reflection Support
make.names

Make Syntactically Valid Names
pmatch

Partial String Matching
.Platform

Platform Specific Variables
mean

Arithmetic Mean
maxCol

Find Maximum Position in Matrix
make.unique

Make Character Strings Unique
nchar

Count the Number of Characters (or Bytes or Width)
nlevels

The Number of Levels of a Factor
ns-hooks

Hooks for Namespace Events
ns-internals

Namespace Internals
NumericConstants

Numeric Constants
match.fun

Extract a Function Specified by Name
match.call

Argument Matching
list.files

List the Files in a Directory/Folder
MathFun

Miscellaneous Mathematical Functions
match

Value Matching
nrow

The Number of Rows/Columns of an Array
ns-topenv

Top Level Environment
NULL

The Null Object
ns-dblcolon

Double Colon and Triple Colon Operators
path.expand

Expand File Paths
rapply

Recursively Apply a Function to a List
raw

Raw Vectors
print.default

Default Printing
print.data.frame

Printing Data Frames
rawConnection

Raw Connections
rawConversion

Convert to or from Raw Vectors
rev

Reverse Elements
Rhome

Return the R Home Directory
row

Row Indexes
pcre_config

row.names

Get and Set Row Names for Data Frames
Primitive

Look Up a Primitive Function
pretty

Pretty Breakpoints
quit

Terminate an R Session
Quotes

Quotes
readLines

Read Text Lines from a Connection
readRDS

Serialization Interface for Single Objects
Reserved

Reserved Words in R
replace

Replace Values in a Vector
rowsum

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

Set CPU and/or Elapsed Time Limits
sets

Set Operations
solve

Solve a System of Equations
socketSelect

Wait on Socket Connections
srcfile

References to Source Files and Code
standardGeneric

Formal Method System -- Dispatching S4 Methods
substitute

Substituting and Quoting Expressions
substr

Substrings of a Character Vector
sys.parent

Functions to Access the Function Call Stack
Sys.readlink

sample

Random Samples and Permutations
slotOp

Extract or Replace A Slot
slice.index

Slice Indexes in an Array
strtrim

Trim Character Strings to Specified Display Widths
structure

Attribute Specification
Syntax

Operator Syntax and Precedence
system2

Invoke a System Command
Sys.getenv

Get Environment Variables
t

Matrix Transpose
tempfile

Create Names for Temporary Files
parse

Parse Expressions
octmode

Display Numbers in Octal
paste

Concatenate Strings
prmatrix

Print Matrices, Old-style
print

Print Values
range

Range of Values
readBin

Transfer Binary Data To and From Connections
RdUtils

Utilities for Processing Rd Files
save

Save R Objects
gl

Generate Factor Levels
grep

Pattern Matching and Replacement
interactive

Is R Running Interactively?
interaction

Compute Factor Interactions
isS4

Test for an S4 object
lazyLoad

Lazy Load a Database of R Objects
isSymmetric

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

Length of an Object
scale

Scaling and Centering of Matrix-like Objects
locales

Query or Set Aspects of the Locale
load

Reload Saved Datasets
sign

Sign Function
seq

Sequence Generation
seq.POSIXt

Generate Regular Sequences of Times
stopifnot

Ensure the Truth of R Expressions
stop

Stop Function Execution
sink

Send R Output to a File
Sys.info

Extract System and User Information
R.Version

Version Information
writeLines

Write Lines to a Connection
trimws

Remove Leading/Trailing Whitespace
Sys.localeconv

Find Details of the Numerical and Monetary Representations
Sys.sleep

Suspend Execution for a Time Interval
.Script

Scripting Language Interface
zpackages

Listing of Packages
Vectorize

Vectorize a Scalar Function
rank

Sample Ranks
sys.source

Parse and Evaluate Expressions from a File
typeof

The Type of an Object
validUTF8

unique

Extract Unique Elements
taskCallbackNames

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

Print Warning Messages
warning

Warning Messages
vector

Vectors
mat.or.vec

Create a Matrix or a Vector
zutils

Miscellaneous Internal/Programming Utilities
match.arg

Argument Verification Using Partial Matching
memory.profile

Profile the Usage of Cons Cells
NA

Not Available
normalizePath

Express File Paths in Canonical Form
NotYet

Not Yet Implemented Functions and Unused Arguments
try

Try an Expression Allowing Error Recovery
Paren

Parentheses and Braces
proc.time

Running Time of R
qr

The QR Decomposition of a Matrix
prod

Product of Vector Elements
QR.Auxiliaries

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

Transfer Character Strings To and From Connections
rep

Replicate Elements of Vectors and Lists
regmatches

Extract or Replace Matched Substrings
readline

Read a Line from the Terminal
scan

Read Data Values
search

Give Search Path for R Objects
xtfrm

Auxiliary Function for Sorting and Ranking
sequence

Create A Vector of Sequences
serialize

Simple Serialization Interface
strwrap

Wrap Character Strings to Format Paragraphs
startsWith

Does String Start or End With Another String?
Startup

Initialization at Start of an R Session
switch

Select One of a List of Alternatives
sweep

Sweep out Array Summaries
subset

Subsetting Vectors, Matrices and Data Frames
Memory

Memory Available for Data Storage
Sys.time

Get Current Date and Time
name

Names and Symbols
Sys.which

Find Full Paths to Executables
which.min

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

Evaluate an Expression in a Data Environment
.Machine

Numerical Characteristics of the Machine
outer

Outer Product of Arrays
zapsmall

Rounding of Numbers
textConnection

Text Connections
tapply

Apply a Function Over a Ragged Array
taskCallback

Add or Remove a Top-Level Task Callback
traceback

Get and Print Call Stacks
tracemem

Trace Copying of Objects
userhooks

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

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

Return both a value and its visibility
taskCallbackManager

Create an R-level Task Callback Manager
write

Write Data to a File
svd

Singular Value Decomposition of a Matrix
shell.exec

Open a File or URL using Windows File Associations
shell

Invoke a System Command, using a Shell
Signals

Interrupting Execution of R
system

Invoke a System Command