Rdocumentation
powered by
Learn R Programming
⚠️
There's a newer version (3.6.2) of this package.
Take me there.
base (version 3.3)
The R Base Package
Description
Base R functions.
Copy Link
Link to current version
Version
Version
3.6.2
3.6.1
3.6.0
3.5.3
3.5.2
3.5.1
3.5.0
3.4.3
3.4.1
3.4.0
3.3.3
3.3.2
3.3.1
3.3.0
3.3
3.2.5
3.2.4
3.2.3
3.2.2
3.2.1
3.2.0
3.1.3
3.1.1
3.1.0
3.0.3
Version
3.3
License
Part of R @VERSION@
Maintainer
R-core R-core@R-project.org
Last Published
December 12th, 2019
Functions in base (3.3)
Search all functions
AsIs
Inhibit Interpretation/Conversion of Objects
Arithmetic
Arithmetic Operators
CallExternal
Modern Interfaces to C/C++ code
DateTimeClasses
Date-Time Classes
Bessel
Bessel Functions
Constants
Built-in Constants
Comparison
Relational Operators
Colon
Colon Operator
Control
Control Flow
Defunct
Marking Objects as Defunct
Deprecated
Marking Objects as Deprecated
Encoding
Read or Set the Declared Encodings for a Character Vector
EnvVar
Environment Variables
Cstack_info
Report Information on C Stack Size and Usage
Dates
Date Class
Extract.factor
Extract or Replace Parts of a Factor
Extract
Extract or Replace Parts of an Object
Extremes
Maxima and Minima
Extract.data.frame
Extract or Replace Parts of a Data Frame
Hyperbolic
Hyperbolic Functions
Foreign
Foreign Function Interface
InternalMethods
Internal Generic Functions
Internal
Call an Internal Function
La_version
LAPACK Version
ISOdatetime
Date-time Conversion Functions from Numeric Representations
Last.value
Value of Last Evaluated Expression
Foreign-internal
Internal Versions of the Foreign Function Interface
log
Logarithms and Exponentials
Logic
Logical Operators
LongVectors
Long Vectors
MathFun
Miscellaneous Mathematical Functions
Memory
Memory Available for Data Storage
NULL
The Null Object
NumericConstants
Numeric Constants
NA
Not Available
/ Missing Values
Ops.Date
Operators on the Date Class
Paren
Parentheses and Braces
.Platform
Platform Specific Variables
Quotes
Quotes
Recall
Recursive Calling
Rhome
Return the R Home Directory
Primitive
Look Up a Primitive Function
Reserved
Reserved Words in R
RdUtils
Utilities for Processing Rd Files
Sys.getpid
Get the Process ID of the R Session
Startup
Initialization at Start of an R Session
Round
Rounding of Numbers
Random
Random Number Generation
Syntax
Operator Syntax and Precedence
Sys.glob
Wildcard Expansion on File Paths
Sys.setFileTime
Set File Time
Sys.localeconv
Find Details of the Numerical and Monetary Representations in the Current Locale
Sys.readlink
Read File Symbolic Links
Vectorize
Vectorize a Scalar Function
Sys.which
Find Full Paths to Executables
abbreviate
Abbreviate Strings
Random.user
User-supplied Random Number Generation
R.Version
Version Information
all.equal
Test if Two Objects are (Nearly) Equal
Sys.setenv
Set or Unset Environment Variables
Sys.info
Extract System and User Information
aperm
Array Transposition
args
Argument List of a Function
any
Are Some Values True?
all
Are All Values True?
append
Vector Merging
agrep
Approximate String Matching (Fuzzy Matching)
array
Multi-way Arrays
apply
Apply Functions Over Array Margins
Sys.time
Get Current Date and Time
Sys.getenv
Get Environment Variables
as.POSIX*
Date-time Conversion Functions
as.Date
Date Conversion Functions to and from Character
as.environment
Coerce to an Environment Object
Sys.sleep
Suspend Execution for a Time Interval
as.data.frame
Coerce to a Data Frame
UseMethod
Class Methods
as.function
Convert Object to Function
assignOps
Assignment Operators
attr
Object Attributes
attach
Attach Set of R Objects to Search Path
assign
Assign a Value to a Name
Memory-limits
Memory Limits in R
attributes
Object Attribute Lists
autoload
On-demand Loading of Packages
base-defunct
Defunct Functions in Package
base
base-internal
Internal Objects in Package
base
all.names
Find All Names in an Expression
base-deprecated
Deprecated Functions in Package
base
bindenv
Binding and Environment Locking, Active Bindings
.bincode
Bin a Numeric Vector
base-package
The R Base Package
bquote
Partial substitution in expressions
body
Access to and Manipulation of the Body of a Function
bitwise
Bitwise Logical Operations
browser
Environment Browser
by
Apply a Function to a Data Frame Split by Factors
call
Function Calls
builtins
Returns the Names of All Built-in Objects
capabilities
Report Capabilities of this Build of R
callCC
Call With Current Continuation
char.expand
Expand a String with Respect to a Target Table
cbind
Combine R Objects by Rows or Columns
chartr
Character Translation and Casefolding
character
Character Vectors
charmatch
Partial String Matching
c
Combine Values into a Vector or List
chkDots
Warn About Extraneous Arguments in the "..." of Its Caller
chol
The Choleski Decomposition
chol2inv
Inverse from Choleski (or QR) Decomposition
browserText
Functions to Retrieve Values Supplied by Calls to the Browser
cat
Concatenate and Print
class
Object Classes
comment
Query or Set a
"comment"
Attribute
colSums
Form Row and Column Sums and Means
commandArgs
Extract Command Line Arguments
row+colnames
Row and Column Names
conditions
Condition Handling and Recovery
col
Column Indexes
basename
Manipulate File Paths
Special
Special Functions of Mathematics
complex
Complex Numbers and Basic Functionality
cumsum
Cumulative Sums, Products, and Extremes
copyright
Copyrights of Files Used to Build R
connections
Functions to Manipulate Connections (Files, URLs, ...)
conflicts
Search for Masked Objects on the Search Path
data.matrix
Convert a Data Frame to a Numeric Matrix
cut
Convert Numeric to Factor
crossprod
Matrix Crossproduct
data.frame
Data Frames
contributors
R Project Contributors
dataframeHelpers
Data Frame Auxiliary Functions
cut.POSIXt
Convert a Date or Date-Time Object to a Factor
dcf
Read and Write Data in DCF Format
date
System Date and Time
det
Calculate the Determinant of a Matrix
deparse
Expression Deparsing
debug
Debug a Function
detach
Detach Objects from the Search Path
diag
Matrix Diagonals
.Device
Lists of Open/Active Graphics Devices
difftime
Time Intervals
delayedAssign
Delay Evaluation
do.call
Execute a Function Call
dimnames
Dimnames of an Object
dontCheck
Identity Function to Suppress Checking
diff
Lagged Differences
deparseOpts
Options for Expression Deparsing
dim
Dimensions of an Object
drop
Drop Redundant Extent Information
double
Double-Precision Vectors
droplevels
droplevels
dump
Text Representations of R Objects
backsolve
Solve an Upper or Lower Triangular System
environment
Environment Access
duplicated
Determine Duplicate Elements
eigen
Spectral Decomposition of a Matrix
eval
Evaluate an (Unevaluated) Expression
dput
Write an Object to a File or Recreate it
dyn.load
Foreign Function Interface
extSoftVersion
Report Versions of Third-Party Software
eapply
Apply a Function Over Values in an Environment
file.choose
Choose a File Interactively
expression
Unevaluated Expressions
file.path
Construct Path to File
file.show
Display One or More Text Files
file.info
Extract File Information
factor
Factors
files
File Manipulation
files2
Manipulaton of Directories and File Permissions
exists
Is an Object Defined?
find.package
Find Packages
format
Encode in a Common Format
findInterval
Find Interval Numbers or Indices
format.info
format(.) Information
format.pval
Format P Values
forceAndCall
Call a function with Some Arguments Forced
data.class
Object Classes
formatDL
Format Description Lists
gc.time
Report Time Spent in Garbage Collection
gctorture
Torture Garbage Collector
force
Force Evaluation of an Argument
get
Return the Value of a Named Object
function
Function Definition
funprog
Common Higher-Order Functions in Functional Programming Languages
getLoadedDLLs
Get DLLs Loaded in Current Session
getCallingDLL
Compute DLL for Native Interface Call
gc
Garbage Collection
getDLLRegisteredRoutines
Reflectance Information for C/Fortran routines in a DLL
getNativeSymbolInfo
Obtain a Description of one or more Native (C/Fortran) Symbols
file.access
Ascertain File Accessibility
formals
Access to and Manipulation of the Formal Arguments
formatC
Formatting Using C-style Formats
getwd
Get or Set Working Directory
gl
Generate Factor Levels
gettext
Translate Text Messages
grep
Pattern Matching and Replacement
groupGeneric
S3 Group Generic Functions
grepRaw
Pattern Matching for Raw Vectors
gzcon
(De)compress I/O Through Connections
hexmode
Display Numbers in Hexadecimal
iconv
Convert Character Vector between Encodings
ifelse
Conditional Element Selection
grouping
Grouping Permutation
interactive
Is R Running Interactively?
invisible
Change the Print Mode to Invisible
interaction
Compute Factor Interactions
integer
Integer Vectors
is.finite
Finite, Infinite and NaN Numbers
identity
Identity Function
is.single
Is an Object of Single Precision Type?
is.unsorted
Test if an Object is Not Sorted
is.language
Is an Object a Language Object?
is.recursive
Is an Object Atomic or Recursive?
jitter
Jitter (Add Noise) to Numbers
isS4
Test for an S4 object
is.object
Is an Object internally classed?
isSymmetric
Test if a Matrix or other Object is Symmetric (Hermitian)
is.R
Are we using R, rather than S?
l10n_info
Localization Information
kappa
Compute or Estimate the Condition Number of a Matrix
labels
Find Labels from Object
lapply
Apply a Function over a List or Vector
kronecker
Kronecker Products on Arrays
length
Length of an Object
levels
Levels Attributes
lengths
Lengths of List or Vector Elements
libcurlVersion
Report Version of libcurl
is.function
Is an Object of Type (Primitive) Function?
identical
Test Objects for Exact Equality
curlGetHeaders
Retrieve Headers from URLs
lazyLoad
Lazy Load a Database of R Objects
expand.grid
Create a Data Frame from All Combinations of Factor Variables
libPaths
Search Paths for Packages
library
Loading/Attaching and Listing of Packages
license
The R License Terms
library.dynam
Loading DLLs from Packages
list2env
From A List, Build or Add To an Environment
list
Lists -- Generic and Dotted Pairs
load
Reload Saved Datasets
ls
List Objects
make.names
Make Syntactically Valid Names
logical
Logical Vectors
list.files
List the Files in a Directory/Folder
mat.or.vec
Create a Matrix or a Vector
margin.table
Compute table margin
locales
Query or Set Aspects of the Locale
match
Value Matching
match.fun
Extract a Function Specified by Name
match.arg
Argument Verification Using Partial Matching
matmult
Matrix Multiplication
mapply
Apply a Function to Multiple List or Vector Arguments
matrix
Matrices
memory.profile
Profile the Usage of Cons Cells
memCompress
In-memory Compression and Decompression
match.call
Argument Matching
maxCol
Find Maximum Position in Matrix
mean
Arithmetic Mean
mode
The (Storage) Mode of an Object
message
Diagnostic Messages
names
The Names of an Object
nargs
The Number of Arguments to a Function
nlevels
The Number of Levels of a Factor
nchar
Count the Number of Characters (or Bytes or Width)
NotYet
Not Yet Implemented Functions and Unused Arguments
ns-dblcolon
Double Colon and Triple Colon Operators
ns-internals
Namespace Internals
norm
Compute the Norm of a Matrix
noquote
Class for no quote Printing of Character Strings
normalizePath
Express File Paths in Canonical Form
ns-reflect.Rd
Namespace Reflection Support
numeric_version
Numeric Versions
merge
Merge Two Data Frames
ns-hooks
Hooks for Namespace Events
on.exit
Function Exit Code
ns-topenv
Top Level Environment
octmode
Display Numbers in Octal
outer
Outer Product of Arrays
order
Ordering Permutation
options
Options Settings
numeric
Numeric Vectors
paste
Concatenate Strings
pos.to.env
Convert Positions in the Search Path to Environments
pretty
Pretty Breakpoints
polyroot
Find Zeros of a Real or Complex Polynomial
missing
Does a Formal Argument have a Value?
ns-load
Loading and Unloading Name Spaces
pcre_config
Report Configuration Options for PCRE
prmatrix
Print Matrices, Old-style
prod
Product of Vector Elements
proc.time
Running Time of R
print.data.frame
Printing Data Frames
QR.Auxiliaries
Reconstruct the Q, R, or X Matrices from a QR Object
qr
The QR Decomposition of a Matrix
pushBack
Push Text Back on to a Connection
print
Print Values
quit
Terminate an R Session
print.default
Default Printing
prop.table
Express Table Entries as Fraction of Marginal Table
range
Range of Values
nrow
The Number of Rows/Columns of an Array
lower.tri
Lower and Upper Triangular Part of a Matrix
icuSetCollate
Setup Collation by ICU
pmatch
Partial String Matching
rank
Sample Ranks
rapply
Recursively Apply a Function to a List
name
Names and Symbols
parse
Parse Expressions
rawConnection
Raw Connections
raw
Raw Vectors
rawConversion
Convert to or from Raw Vectors
readLines
Read Text Lines from a Connection
readBin
Transfer Binary Data To and From Connections
readline
Read a Line from the Terminal
readRenviron
Set Environment Variables from a File
regex
Regular Expressions as used in R
regmatches
Extract or Replace Matched Substrings
round.POSIXt
Round / Truncate Data-Time Objects
rep
Replicate Elements of Vectors and Lists
readChar
Transfer Character Strings To and From Connections
row
Row Indexes
rowsum
Give Column Sums of a Matrix or Data Frame, Based on a Grouping Variable
replace
Replace Values in a Vector
rev
Reverse Elements
rle
Run Length Encoding
sample
Random Samples and Permutations
row.names
Get and Set Row Names for Data Frames
sQuote
Quote Text
scan
Read Data Values
search
Give Search Path for R Objects
seq.Date
Generate Regular Sequences of Dates
seek
Functions to Reposition Connections
save
Save R Objects
scale
Scaling and Centering of Matrix-like Objects
sets
Set Operations
sequence
Create A Vector of Sequences
readRDS
Serialization Interface for Single Objects
setTimeLimit
Set CPU and/or Elapsed Time Limits
reg.finalizer
Finalization of Objects
serialize
Simple Serialization Interface
seq.POSIXt
Generate Regular Sequences of Times
shQuote
Quote Strings for Use in OS Shells
make.unique
Make Character Strings Unique
slice.index
Slice Indexes in an Array
solve
Solve a System of Equations
sort
Sorting or Ordering Vectors
slotOp
Extract or Replace A Slot
source
Read R Code from a File or a Connection
sink
Send R Output to a File
split
Divide into Groups and Reassemble
srcfile
References to source files
standardGeneric
Formal Method System -- Dispatching S4 Methods
showConnections
Display Connections
stopifnot
Ensure the Truth of R Expressions
startsWith
Does String Start or End With Another String?
socketSelect
Wait on Socket Connections
seq
Sequence Generation
stop
Stop Function Execution
strsplit
Split the Elements of a Character Vector
strptime
Date-time Conversion Functions to and from Character
strrep
Repeat the Elements of a Character Vector
strwrap
Wrap Character Strings to Format Paragraphs
strtoi
Convert Strings to Integers
path.expand
Expand File Paths
strtrim
Trim Character Strings to Specified Display Widths
subset
Subsetting Vectors, Matrices and Data Frames
svd
Singular Value Decomposition of a Matrix
switch
Select One of a List of Alternatives
sprintf
Use C-style String Formatting Commands
sweep
Sweep out Array Summaries
sys.parent
Functions to Access the Function Call Stack
system
Invoke a System Command
system.file
Find Names of R System Files
sum
Sum of Vector Elements
system.time
CPU Time Used
sys.source
Parse and Evaluate Expressions from a File
substitute
Substituting and Quoting Expressions
substr
Substrings of a Character Vector
system2
Invoke a System Command
tapply
Apply a Function Over a Ragged Array
tabulate
Tabulation for Vectors
sign
Sign Function
taskCallback
Add or Remove a Top-Level Task Callback
textConnection
Text Connections
tempfile
Create Names for Temporary Files
tilde
Tilde Operator
timezones
Time Zones
taskCallbackNames
Query the Names of the Current Internal Top-Level Task Callbacks
transform
Transform an Object, for Example a Data Frame
taskCallbackManager
Create an R-level Task Callback Manager
t
Matrix Transpose
trimws
Remove Leading/Trailing Whitespace
trace
Interactive Tracing and Debugging of Calls to a Function or Method
toString
Convert an R Object to a Character String
unname
Remove
names
or
dimnames
table
Cross Tabulation and Table Creation
unlink
Delete Files and Directories
try
Try an Expression Allowing Error Recovery
unique
Extract Unique Elements
unlist
Flatten Lists
utf8Conversion
Convert Integer Vectors to or from UTF-8-encoded Character Vectors
traceback
Get and Print Call Stacks
warning
Warning Messages
typeof
The Type of an Object
validUTF8
Check if a Character Vector is Validly Encoded
with
Evaluate an Expression in a Data Environment
vector
Vectors
which.min
Where is the Min() or Max() or first TRUE or FALSE ?
weekdays
Extract Parts of a POSIXt or Date Object
warnings
Print Warning Messages
which
Which indices are TRUE?
summary
Object Summaries
withVisible
Return both a value and its visibility
remove
Remove Objects from a Specified Environment
xtfrm
Auxiliary Function for Sorting and Ranking
write
Write Data to a File
.Machine
Numerical Characteristics of the Machine
writeLines
Write Lines to a Connection
structure
Attribute Specification
userhooks
Functions to Get and Set Hooks for Load, Attach, Detach and Unload
zapsmall
Rounding of Numbers
.Script
Scripting Language Interface
tracemem
Trace Copying of Objects
zutils
Miscellaneous Internal/Programming Utilities
zpackages
Listing of Packages
Trig
Trigonometric Functions
encodeString
Encode Character Vector as for Printing