Skip to content
Personal R package. No particular theme to the content.
Branch: master
Clone or download
Latest commit c7f8705 Jul 19, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
R improvement on str_uniquify() Jul 6, 2019
data New: meta_TIVA(). Implements the test of insufficient variance. Apr 24, 2017
inst/extdata
knitr
man improvement on str_uniquify() Jul 6, 2019
old Delete extra copy of Jensen_plot old function. No idea why there were 2. Mar 14, 2017
tests
.Rbuildignore First release Jun 4, 2015
.gitattributes
.gitignore First release Jun 4, 2015
DESCRIPTION bugfix for miss_impute() Feb 17, 2019
LICENSE Create LICENSE Jul 19, 2019
NAMESPACE add GG_heatmap() Jul 6, 2019
README.md remove removed deps Feb 14, 2019
S_misc_data.RDS Multiple changes. Sep 10, 2016
datasets.R various Nov 24, 2015
debug.R 1.14 Sep 4, 2015
kirkegaard.Rproj december 2017 update Dec 5, 2017
package.R
personal_freedom_items.RDS 2016.06.03 Jun 14, 2016
temp.R April update. Apr 16, 2017
tests.R

README.md

kirkegaard

This is my personal R package. The primary purpose of this package is to be a transportable collection of code that I often use. As such, it may change without much warning and break your code. Generally, it doesn't because this would break my code too! :) When it does, I usually leave a placeholder function behind so that one knows what the new function name is.

There are functions for areas including:

  • df_: Common operations on data.frames, including merging data.frames with overlapping data, standardizing, adding missing data, residualizing and class conversion. Examples.
  • MOD_: Convenience Functions for statistical modeling such as best subset and penalized (LASSO) regression.
  • SAC_: Spatial statistics, including new methods for measuring and controlling for autocorrelation.
  • MAT_: Elementary matrix operations such as getting a half and restoring a symmetrical matrix from a half.
  • fa_: Factor analysis, including new methods for checking for method variance, finding odd cases, using Jensen's method and plotting loadings.
  • GG_: Convenience functions for plotting with ggplot2. Examples.
  • pu_: Functions that deals with names of political units by converting to and from standardized abbreviations. Examples.
  • Various other functions that I often use.

It's probably that when some of these collections get large enough, they will be moved to their own packages.

Installing from scratch

for whatever reason, it is sometimes hard to get it to install the dependencies automatically so here's a small call to manually install them. This installs all dependencies, including those rarely used.

#pacman
if (require("pacman")) install.packages("pacman")

#CRAN packages
library(pacman)
p_load(grid, ggplot2, scales, stringr, purrr, assertthat, readr, xml2, plyr, dplyr, tidyr, psych, gtools, robustbase, MASS, forcats, polycor, weights, devtools, VIM, lsr, compute.es, magrittr, tibble, psychometric, Hmisc, stringdist, glmnet, metafor, binom, GPArotation)

#github packages
purrr::map(c("thomasp85/curry", "rOpenGov/dkstat"), ~devtools::install_github(.))

#finally
devtools::install_github("deleetdk/kirkegaard")
You can’t perform that action at this time.