/lazerhawk

An R package of miscellaneous functions.

Primary LanguageROtherNOASSERTION

lazerhawk

Build Status codecov

Package description

This package has a few miscellaneous functions useful to me, and which might be useful to others. Nothing extraordinarily unique is here, more or less tweaks/variations of available R functions that do almost what I want, but not quite. Also, I wanted to learn more about building packages, and this was my first foray into that world. The package itself is not on CRAN but would pass CRAN checks. Feel free to note issues if you use it.

This tended to serve as a staging ground for functions that eventually move to their own package. Many have been moved to tidyext and visibly, and others. This package will be more of a grab-bag of odds and ends that don’t seem to fit elsewhere.

I was listening to Lazerhawk at one point while creating it, hence the name, and which I can suggest is decent to listen to for programming, but to each their own in that regard.

Installation

The usual GitHub installation. devtools package required.

devtools::install_github('m-clark/lazerhawk')

Functions

brmsSummaryTable

A function I use when creating reports for other people that involve models using the brms package.

create_adjacency, create_edges

Create an adjacency matrix, or use one to create an edge list.

create_corr

A function to create a correlation matrix. Useful, for example, in setting up simulations.

lower_tri, upper_tri

Return a triangular matrix, with some options on what specifically is returned.

pairwise

Apply an arbitrary function to pairwise combinations of rows or columns.

update_github_pkgs

Guess.

Addins

insertImgCenterAddin

For R Markdown files, inserts <img ...> with centered options filled in.

insertSpanAddin

For R Markdown files, inserts <span class=''>.

Release Notes

  • 0.3.0 Remove deprecated functions, fixed bug for create_corr
  • 0.2.4 Split off more tidy-oriented functions to tidyext and visibly packages, add update_github_pkgs
  • 0.2.3 Added some options and streamlined describe_all functions (e.g. issue #10)
  • 0.2.2 Add colorgorical, convert names to snake case
  • 0.2.1 Add create_prediction_data
  • 0.2.0 Add combn_2_col, onehot, and extract_nlme_variances
  • 0.1.9 Extend num_by and rewrite describeAll
  • 0.1.8 Added num_by summary function and fixed issue #3
  • 0.1.7 Added create_palette and made updates to palettes
  • 0.1.6 Removed corrheat to its own package, added sum of missingness
  • 0.1.5 Added plotly theme, modified help
  • 0.1.4 Updates to corrheat to use psych package
  • 0.1.3 Addins for span, slide
  • 0.1.2 Added clean themes for ggvis and ggplot
  • 0.1.1 Added createAdjacency and createEdges, and start of addins
  • 0.1.0 Initial release