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