Helper Tools for Managing Data, Dates, Missing Values, and Text
Append values to elements of a list from another list
Identify values bracketing another value
Capitalize first letter of a string
Combine data frames with different fields using a crosswalk table
Compare values to floating-point precision
Convert length or areal units
Corner of a matrix or data frame
Number of digits after a decimal place
Force objects to have length or rows equal to the shortest
Replacement for dir.create()
Get names of objects input as arguments in ellipse (...
) form
The smallest machine-readable number
Convert unit abbreviations to proper unit names
Replace backslash with forward slash
Insert values into a vector
Insert a column or row into a data frame or matrix
Test if a numeric value is a whole number
Is a year a leap year?
Vectorized test for truth robust to NA
Replacement for list.files()
Length of the longest run of a particular value in a numeric vector
Maximum number of continuous "runs" of values meeting a particular con...
Size of objects taking most memory use
Merge two lists with precedence
Flip an object
Modal value(s)
Compare values using <, <=, >, >=, !=, and == (robust to NAs)
Remove NAs from one or more equal-length vectors
Index of rows in a data frame or matrix that contain at least one NA
Opposite of '%in%'
omnibus: Fantabulous helper functions
Calculate pairwise distances between two matrices or data frames.
Partial matching of strings with error checking
Add leading characters to a string
Area of a quadrilateral
Rename columns
Renumber a sequence of numbers
Rotate values in a matrix
Number of significant digits in rounded numbers
Round to nearest target value
Convert between row- and column-style indexing of matrices
Make a nearly-guaranteed unique string
Nicer version of print()
or cat()
function
Left/right side of a data frame or matrix
Rescale values
For any object in a list that is also a list, unlist it
Turn a "ragged" matrix into a "ragged" vector
Which vector has maximum value at each element
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).