Package: cheapr 0.9.91

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.91.tar.gz
cheapr_0.9.91.zip(r-4.5)cheapr_0.9.91.zip(r-4.4)cheapr_0.9.91.zip(r-4.3)
cheapr_0.9.91.tgz(r-4.4-x86_64)cheapr_0.9.91.tgz(r-4.4-arm64)cheapr_0.9.91.tgz(r-4.3-x86_64)cheapr_0.9.91.tgz(r-4.3-arm64)
cheapr_0.9.91.tar.gz(r-4.5-noble)cheapr_0.9.91.tar.gz(r-4.4-noble)
cheapr_0.9.91.tgz(r-4.4-emscripten)cheapr_0.9.91.tgz(r-4.3-emscripten)
cheapr.pdf |cheapr.html
cheapr/json (API)
NEWS

# Install 'cheapr' in R:
install.packages('cheapr', repos = c('https://nicchr.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

On CRAN:

6.91 score 15 stars 2 packages 67 scripts 942 downloads 94 exports 3 dependencies

Last updated 10 days agofrom:a03581d593. Checks:OK: 9. Indexed: yes.

TargetResultDate
Doc / VignettesOKNov 19 2024
R-4.5-win-x86_64OKNov 19 2024
R-4.5-linux-x86_64OKNov 19 2024
R-4.4-win-x86_64OKNov 19 2024
R-4.4-mac-x86_64OKNov 19 2024
R-4.4-mac-aarch64OKNov 19 2024
R-4.3-win-x86_64OKNov 19 2024
R-4.3-mac-x86_64OKNov 19 2024
R-4.3-mac-aarch64OKNov 19 2024

Exports:%!in_%%in_%all_naany_naas_discreteas_factorbincasecheapr_if_elsecheapr_revcheapr_varcol_all_nacol_any_nacol_na_countscount_valcut_numericdeframe_enframe_factor_gcdgcd2get_breaksintersect_is_nalag_lag_sequencelag2_lead_sequencelengths_levels_addlevels_add_nalevels_countlevels_droplevels_drop_nalevels_factorlevels_lumplevels_renamelevels_reorderlevels_rmlevels_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_matchval_replaceval_rmvector_lengthwhich_which_nawhich_not_nawhich_valwindow_sequencewith_local_seed

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 cheapr case-when and switchcase val_match
Cheaper version of 'ifelse()'cheapr_if_else
A cheaper version of 'factor()' along with cheaper utilitiesas_factor factor_ levels_add levels_add_na levels_count levels_drop levels_drop_na levels_factor levels_lump levels_rename levels_reorder levels_rm 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_numeric deframe_ enframe_ intersect_ na_insert sample_ setdiff_ val_insert vector_length with_local_seed
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_