The jamba package contains several jam base functions which are re-usable for routine R analysis work, and are important dependencies for other Jam R packages.

Details

The goal will be to maintain these methods as lightweight as possible, so their inclusion in an analysis workflow will not incur a noticeable burden.

The sections and functions below are not comprehensive, but provide examples of useful functions. The most highly-used functions are: printDebug(), vigrep(), nameVector() with makeNames(), pasteByRow(), showColors().

plot functions

string functions

color functions

miscellaneous helper functions

Jam options

The jamba package recognizes some global options, but limits these options to include only non-analysis options. For example, no global option should change the numerical manipulation of data.

  • jam.lightMode - boolean, defines whether the text background is light (TRUE is bright) or dark (FALSE is dark) mainly for the purpose of restricting text output colors from printDebug so they have visible contrast.

  • jam.adjustRgb - numerical setting used as a small adjustment of colors used by the crayon functions to produce ANSI color text.