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