-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathREADME.Rmd
84 lines (57 loc) · 3.62 KB
/
README.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
---
output:
md_document:
variant: gfm
---
# lazerhawk <img src="man/img/lh_hex.png" align="right" width = 360/>
[](https://travis-ci.org/m-clark/lazerhawk)
[](https://codecov.io/gh/m-clark/lazerhawk)
<a href="https://github.com/m-clark/lazerhawk" alt="Miscellaneous Shenanigans">
<img src="https://img.shields.io/badge/miscellaneous_shenanigans-constant-ff5500.svg?colorA=00aaff&longCache=true&style=for-the-badge" width=27.5%/></a>
<!-- [](https://img.shields.io/badge/misc_shenanigans-constant-ff5500.svg) -->
<!-- https://github.com/badges/shields -->
<!-- <img src="man/img/lh_hex.png" style="display:block; margin: 0 auto;" width='50%'> -->
## 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](https://github.com/m-clark/tidyext) and [visibly](https://github.com/m-clark/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](http://lazerhawk.bandcamp.com/album/redline) 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.
```{r eval=FALSE}
devtools::install_github('m-clark/lazerhawk')
```
## Functions
### brmsSummaryTable
A function I use when creating reports for other people that involve models using the [brms](https://github.com/paul-buerkner/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