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.
The usual GitHub installation. devtools package required.
devtools::install_github('m-clark/lazerhawk')
A function I use when creating reports for other people that involve models using the brms package.
Create an adjacency matrix, or use one to create an edge list.
A function to create a correlation matrix. Useful, for example, in setting up simulations.
Return a triangular matrix, with some options on what specifically is returned.
Apply an arbitrary function to pairwise combinations of rows or columns.
Guess.
For R Markdown files, inserts <img ...>
with centered options filled in.
For R Markdown files, inserts <span class=''>
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.