base v3.6.1

The R Base Package

Base R functions.

Functions in base

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


Priority base
License Part of R 3.6.1
suggests methods
Contributors contributors worldwide, R team

Include our badge in your README