Miscellaneous R Functions and Aliases
Maximum area given x and y coordinates
Aliases
Determine whether a vector is all of the same sign
Does the pattern appear anywhere?
AUC
Average of bearings
Bearing calculations
Find first non-missing element
Copy device to an A4 PDF
List many files
Drop column or columns
Drop columns whose names match a pattern
Drop constant columns
Drop empty columns
Return duplicated rows of data.table
Exists and (not) in
Find string pattern in (text) file
Utilities for fst files
Generate LaTeX manual of installed package
Negation of in (character)
Negation of in
Partial in
Distance between two points on the Earth
hutils package
Vectorized if
#' Logical implies
Is a package attached?
Logical assertions
Longest common prefix/suffix
Proportion of values that are NA.
Statistical mode
Add a column of ntiles to a data table
Group infrequent entries into 'Other category'
Anti-grep
Prohibit unequal length vectors
Prohibit vector recycling
Provide directory
Provide a file
Replace string pattern in text file
Report errors and warnings
Shorthand for requireNamespace
Safer sampler
Select names matching a pattern
Select columns satisfying a condition
Fast selection of data.table columns
Generate sequence of row numbers
Put columns first or last
Swap assignment
Vectorized switch
Unique keys
Expand a weighted data frame to an equivalent unweighted
Weighted (ranked) quantiles
Weighted quantile
Provides utility functions for, and drawing on, the 'data.table' package. The package also collates useful miscellaneous functions extending base R not available elsewhere. The name is a portmanteau of 'utils' and the author.
Useful links