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