omnibus1.2.14 package

Helper Tools for Managing Data, Dates, Missing Values, and Text

appendLists

Append values to elements of a list from another list

bracket

Identify values bracketing another value

capIt

Capitalize first letter of a string

combineDf

Combine data frames with different fields using a crosswalk table

compareFloat

Compare values to floating-point precision

convertUnits

Convert length or areal units

corner

Corner of a matrix or data frame

countDecDigits

Number of digits after a decimal place

cull

Force objects to have length or rows equal to the shortest

dirCreate

Replacement for dir.create()

ellipseNames

Get names of objects input as arguments in ellipse (...) form

eps

The smallest machine-readable number

expandUnits

Convert unit abbreviations to proper unit names

forwardSlash

Replace backslash with forward slash

insert

Insert values into a vector

insertCol

Insert a column or row into a data frame or matrix

is.wholeNumber

Test if a numeric value is a whole number

isLeapYear

Is a year a leap year?

isTRUENA

Vectorized test for truth robust to NA

listFiles

Replacement for list.files()

longRun

Length of the longest run of a particular value in a numeric vector

maxRuns

Maximum number of continuous "runs" of values meeting a particular con...

memUse

Size of objects taking most memory use

mergeLists

Merge two lists with precedence

mirror

Flip an object

mmode

Modal value(s)

naCompare

Compare values using <, <=, >, >=, !=, and == (robust to NAs)

naOmitMulti

Remove NAs from one or more equal-length vectors

naRows

Index of rows in a data frame or matrix that contain at least one NA

notIn

Opposite of '%in%'

omnibus

omnibus: Fantabulous helper functions

pairDist

Calculate pairwise distances between two matrices or data frames.

pmatchSafe

Partial matching of strings with error checking

prefix

Add leading characters to a string

quadArea

Area of a quadrilateral

renameCol

Rename columns

renumSeq

Renumber a sequence of numbers

rotateMatrix

Rotate values in a matrix

roundedSigDigits

Number of significant digits in rounded numbers

roundTo

Round to nearest target value

rowColIndexing

Convert between row- and column-style indexing of matrices

rstring

Make a nearly-guaranteed unique string

say

Nicer version of print() or cat() function

side

Left/right side of a data frame or matrix

stretchMinMax

Rescale values

unlistRecursive

For any object in a list that is also a list, unlist it

unragMatrix

Turn a "ragged" matrix into a "ragged" vector

which.pmax

Which vector has maximum value at each element

yearFromDate

Year from date formats that are possibly ambiguous

An assortment of helper functions for managing data (e.g., rotating values in matrices by a user-defined angle, switching from row- to column-indexing), dates (e.g., intuiting year from messy date strings), handling missing values (e.g., removing elements/rows across multiple vectors or matrices if any have an NA), text (e.g., flushing reports to the console in real-time); and combining data frames with different schema (copying, filling, or concatenating columns or applying functions before combining).

  • Maintainer: Adam B. Smith
  • License: GPL (>= 3)
  • Last published: 2024-09-17