Package: bazar 1.1.0

bazar: Miscellaneous Basic Functions

A collection of miscellaneous functions for copying objects to the clipboard ('Copy'); manipulating strings ('concat', 'mgsub', 'trim', 'verlan'); loading or showing packages ('library_with_dep', 'require_with_dep', 'sessionPackages'); creating or testing for named lists ('nlist', 'as_nlist', 'is_nlist'), formulas ('is_formula'), empty objects ('as_empty', 'is_empty'), whole numbers ('as_wholenumber', 'is_wholenumber'); testing for equality ('almost_equal', 'almost_zero') and computing uniqueness ('almost_unique'); getting modified versions of usual functions ('rle2', 'sumNA'); making a pause or a stop ('pause', 'stopif'); converting into a function ('as_fun'); providing a C like ternary operator ('condition %?% true %:% false'); finding packages and functions ('get_all_pkgs', 'get_all_funs'); and others ('erase', '%nin%', 'unwhich', 'top', 'bot', 'normalize').

Authors:Paul Poncet [aut, cre]

bazar_1.1.0.tar.gz
bazar_1.1.0.zip(r-4.5)bazar_1.1.0.zip(r-4.4)bazar_1.1.0.zip(r-4.3)
bazar_1.1.0.tgz(r-4.4-any)bazar_1.1.0.tgz(r-4.3-any)
bazar_1.1.0.tar.gz(r-4.5-noble)bazar_1.1.0.tar.gz(r-4.4-noble)
bazar_1.1.0.tgz(r-4.4-emscripten)bazar_1.1.0.tgz(r-4.3-emscripten)
bazar.pdf |bazar.html
bazar/json (API)
NEWS

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

Peer review:

Bug tracker:https://github.com/paulponcet/bazar/issues

On CRAN:

4.44 score 1 stars 2 packages 81 scripts 1.1k downloads 53 exports 11 dependencies

Last updated 5 years agofrom:cacccfed36. Checks:OK: 1 NOTE: 6. Indexed: yes.

TargetResultDate
Doc / VignettesOKOct 31 2024
R-4.5-winNOTEOct 31 2024
R-4.5-linuxNOTEOct 31 2024
R-4.4-winNOTEOct 31 2024
R-4.4-macNOTEOct 31 2024
R-4.3-winNOTEOct 31 2024
R-4.3-macNOTEOct 31 2024

Exports:%:%%?%%nin%almost_equalalmost_uniquealmost_zeroalmost.equalalmost.uniquealmost.zeroas_emptyas_funas_naas_nlistas_wholenumberas.emptyas.funas.naas.nlistas.wholenumberbotconcatconcat_concat0Copyeraseget_all_funsget_all_pkgsget_varsis_emptyis_formulais_nlistis_wholenumberis.emptyis.formulais.nlistis.wholenumberisNAlibrary_with_depmake_idxmgsubnlistnormalizepauserequire_with_deprle2rollfunsessionPackagesstopifsumNAtoptrimunwhichverlan

Dependencies:clifansigluelifecyclemagrittrpillarpkgconfigrlangtibbleutf8vctrs

Readme and manuals

Help Manual

Help pageTopics
If-Then-Else ternary operator%:% %?%
Value matching%nin%
Test (almost) equality of numeric valuesalmost.equal almost_equal
Almost unique elementsalmost.unique almost_unique almost_unique.default
Test if values of a vector are almost zeroalmost.zero almost_zero
Convert to an empty objectas.empty as_empty as_empty.data.frame as_empty.default
Convert object to functionas.fun as_fun as_fun.call as_fun.character as_fun.complex as_fun.data.frame as_fun.default as_fun.factor as_fun.formula as_fun.lm as_fun.logical as_fun.name as_fun.numeric as_fun.rpart
Transform values to NAas.na as_na as_na.data.frame as_na.default as_na.list
bazar: miscellaneous basic functionsbazar-package bazar
String concatenationconcat concat0 concat_
Copy data to the clipboardCopy
Delete objectserase
Functions exported by a packageget_all_funs
Packages exporting a functionget_all_pkgs
Get formula variablesget_vars
Test emptynessis.empty is_empty is_empty.data.frame is_empty.default
Test if an object is a formulais.formula is_formula
Test if the values of a vector are whole numbersas.wholenumber as_wholenumber is.wholenumber is_wholenumber
Test if NAisNA
Loading/Attaching and listing of packages with dependencieslibrary_with_dep require_with_dep
Multiple gsubmgsub
Named listsas.nlist as_nlist is.nlist is_nlist nlist
Normalize a numeric vectornormalize
Have a rest, make a pausepause
Run length encoding (modified version)rle2
Moving windows with custom functionmake_idx rollfun
Shows packages attached to the current R sessionsessionPackages
Ensure that R expressions are falsestopif
Modified sum of vector elementssumNA
Top or bottom element of an objectbot top
Removes extra whitespaces from a stringtrim
Quasi-inverse of the 'which' functionunwhich
Back slangverlan