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