Package: cheapr 0.9.9

Nick Christofides

cheapr: Simple Functions to Save Time and Memory

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.

Authors:Nick Christofides [aut, cre]

cheapr_0.9.9.tar.gz
cheapr_0.9.9.tar.gz(r-4.5-noble)cheapr_0.9.9.tar.gz(r-4.4-noble)
cheapr_0.9.9.tgz(r-4.4-emscripten)cheapr_0.9.9.tgz(r-4.3-emscripten)
cheapr.pdf |cheapr.html
cheapr/json (API)
NEWS

# Install 'cheapr' in R:
install.packages('cheapr', repos = c('https://cran.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/nicchr/cheapr/issues

Uses libs:
  • c++– GNU Standard C++ Library v3
  • openmp– GCC OpenMP (GOMP) support library

4.21 score 2 packages 54 scripts 920 downloads 85 exports 3 dependencies

Last updated 12 days agofrom:d7c7d76164. Checks:OK: 2. Indexed: no.

TargetResultDate
Doc / VignettesOKOct 15 2024
R-4.5-linux-x86_64OKOct 15 2024

Exports:%!in_%%in_%all_naany_naas_discreteas_factorbincheapr_revcheapr_varcol_all_nacol_any_nacol_na_countscount_valcut_numericdeframe_enframe_factor_gcdgcd2get_breaksintersect_is_nalag_lag_sequencelag2_lead_sequencelengths_levels_add_nalevels_droplevels_drop_nalevels_factorlevels_reorderlevels_unusedlevels_usedna_countna_findna_insertna_replacena_rmnamed_listnew_dfnew_listnum_naoverviewrecyclerow_all_narow_any_narow_na_countssample_scmscm2seq_seq_idseq_sizesequence_set_absset_addset_ceilingset_change_signset_divideset_expset_floorset_logset_multiplyset_powset_roundset_sqrtset_subtractset_truncsetdiff_ssetunlisted_lengthunused_levelsused_levelsval_countval_findval_insertval_replaceval_rmvector_lengthwhich_which_nawhich_not_nawhich_valwindow_sequence

Dependencies:collapsecpp11Rcpp

Readme and manuals

Help Manual

Help pageTopics
cheapr: Simple Functions to Save Time and Memorycheapr-package cheapr
Turn continuous data into discrete binsas_discrete as_discrete.integer64 as_discrete.numeric
A sometimes cheaper but argument richer alternative to '.bincode()'bin
A cheaper version of 'factor()' along with cheaper utilitiesas_factor factor_ levels_add_na levels_drop levels_drop_na levels_factor levels_reorder levels_unused levels_used unused_levels used_levels
Greatest common divisor and smallest common multiplegcd gcd2 scm scm2
Pretty break-points for continuous (numeric) dataget_breaks get_breaks.integer64 get_breaks.numeric
Efficient functions for dealing with missing values.all_na any_na col_all_na col_any_na col_na_counts is_na is_na.data.frame is_na.default is_na.POSIXlt is_na.vctrs_rcrd num_na row_all_na row_any_na row_na_counts which_na which_not_na
Lagged operations.lag2_ lag_
List utilitieslengths_ new_list unlisted_length
Turn dot-dot-dot ('...') into a named listnamed_list
Fast data frame constructornew_df
An alternative to 'summary()' inspired by the skimr packageoverview overview.character overview.data.frame overview.Date overview.default overview.factor overview.integer overview.integer64 overview.logical overview.numeric overview.POSIXt overview.ts overview.zoo
Recycle objects to a common sizerecycle
Utilities for creating many sequenceslag_sequence lead_sequence sequence_ seq_ seq_id seq_size window_sequence
Math operations by reference - *Experimental*set_abs set_add set_ceiling set_change_sign set_divide set_exp set_floor set_log set_multiply set_pow set_round set_sqrt set_subtract set_trunc
Extra utilities%!in_% %in_% cheapr_rev cheapr_var cut.integer64 cut_numeric deframe_ enframe_ intersect_ na_insert sample_ setdiff_ val_insert vector_length
Cheaper subsetsset sset.data.frame sset.data.table sset.Date sset.factor sset.POSIXct sset.POSIXlt sset.sf sset.tbl_df
Efficient functions for counting, finding, replacing and removing scalarscount_val na_count na_find na_replace na_rm val_count val_find val_replace val_rm which_val
Memory-efficient alternative to 'which()'which_