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