Skip to contents

Infix

Character

bckQuote()
Backquote Text
collapse() collapse0() listing()
Collapse a Vector of Strings into a Single String
cat0()
Concatenate and Print with No Separator
anyZchar() anyWS()
Are any zero char or all whitespace elements present?

grep and sub wrappers

grepf() grepi()
Pattern Matching
greplf() grepli()
Pattern Matching
grepv() grepvf() grepvi()
Pattern Matching
subf() subi() gsubf() gsubi()
Pattern Replacement Wrappers

Dots

dotsNames() subDots() dp1Dots() checkDots()
Process the ... arguments of a function.

Warnings and errors

match.argv()
Argument Verification
stop2() warning2()
Display Warnings and Errors with Call Information
stopifnot2() warningifnot()
Ensure the Truth of R Expressions with Call Information
stopifnot.with()
Ensure the Truth of R Expressions in a Data Environment

Classes

addClass()
Add a Class to an Object
isVector()
Check if Any of Given Vector Types
is.datetype() is.Date() is.POSIXt() is.POSIXct() is.POSIXlt()
Is object of a Date type?
is.boolean() is.string() nzstring()
Value Predicates for Common Object Types

Data wrangling

Even/odd

is.even() is.odd()
Is a Number Even or Odd?

Which min/max

NA and non-finite values

is.nonfinite() is.nf() anyNF()
Are non-finite values present?
whichNA() `whichNA<-`()
Which indices are NA?
setNA() `setNA<-`()
Set given indices as NA
na.vector()
Create a vector of NA's
na.refill()
Refill the NAs for a 'na.action' Object

Wholeness

is.whole() is.wholenumber() is.integerish()
Are vectors whole or integer-like?

Duplicates

repeated() whichRepeated() repeats() non.unique()
Determine Repeated Elements

Remove elements

rm.first() `rm.first<-`() rm.last() `rm.last<-`()
Remove First or Last N Elements

Utilities

predapply()
Apply a predicate function over a list or vector
empty.list()
Create an Empty list of Given Length
path() dims() enumerate()
Miscellaneous Helper Functions
libraries() requires()
Loading/Attaching Multiple Packages