Simple Functions to Save Time and Memory
Memory address of R object
Turn continuous data into discrete bins
Add and remove attributes
A sometimes cheaper but argument richer alternative to .bincode()
A cheapr case-when and switch
Fast casting/coercing of R objects
A cheapr version of c()
cheapr: Simple Functions to Save Time and Memory
Copy R objects
Fast frequency tables - Still experimental
Low-level attribute re-constructor
Cheap data frame utilities
Turn dot-dot-dot (...) into a named list
Extra utilities
A cheaper version of factor() along with cheaper utilities
Greatest common divisor and smallest common multiple
Pretty break-points for continuous (numeric) data
Cheaper version of ifelse()
A fast and integer-based sign()
Efficient functions for dealing with missing values.
Very fast check that numeric vector consists only of whole numbers
Lagged operations.
List utilities
Parallelised math operations
Fast NA initialisation
Fast multi-threaded vector initialisation
An alternative to summary() inspired by the skimr package
Rebuild an object from a template
Recycle objects to a common size
cheapr style repeat functions
Fast vector replacement, an alternative to [<-
Efficient functions for counting, finding, replacing and removing scal...
Utilities for creating many sequences
Math operations by reference - Experimental
Fast functions for data frame subsetting
Cheaper subset sset()
Coalesce character vectors
Fast string concatenation using C++
Switch between dot-dot-dot and a list of args
Get and set the number of OpenMP threads to be used in cheapr
An alternative unique function
Memory-efficient alternative to which()
Fast and memory-efficient (or 'cheap') tools to facilitate efficient programming, saving time and memory. It aims to provide 'cheaper' alternatives to common base R functions, as well as some additional functions.