Nima Hejazi's R Toolbox

Miscellaneous R functions developed as collateral damage over the course of work in statistical and scientific computing for research. These include, for example, utilities that supplement existing idiosyncrasies of the R language, extend existing plotting functionality and aesthetics, help prepare data objects for imputation, and extend access to command line tools and systems-level information.

This is the personal R package of Nima Hejazi.

R/nima is an R package that houses miscellaneous functions that are useful to me.

This package is made public for my own convenience, with no guarantees.

This package is considered to be perpetually under development.

  • To install the most recent stable release:

    • from CRAN, use install.packages("nima")
    • from GitHub, use devtools::install_github("nhejazi/nima")
  • To install the development version, use devtools::install_github("nhejazi/nima", ref = "devel")

© 2016 Nima Hejazi

This repository is licensed under the MIT license. See below for details:

The MIT License (MIT)
Copyright (c) 2016 Nima Hejazi
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.


May 02, 2018:

  • Fix a broken unit test for R 3.5.0, changing the use of identical for a combination of expect_true and setequal

March 23, 2018:

  • Fix a broken test (due to use of all.equal instead of identical) in R-devel, based on report by CRAN
  • Add hex sticker for package based on art work by GL

September 20, 2016:

  • Addition of several functions, re-written DESCRIPTION file. Update of package version to v. 0.4.0. This version update to be released on CRAN.

July 05, 2016:

  • Major changes, including addition of unit tests and Travis-CI coverage, added to the package for v. 0.3.5. This version update not to be released on CRAN.

March 25, 2016:

  • The first public release of this package (v. 0.3.0) is made available on CRAN.

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.


0.6.2 by Nima Hejazi, a year ago

Report a bug at

Browse source code at

Authors: Nima Hejazi [aut, cre, cph]

Documentation:   PDF Manual  

MIT + file LICENSE license

Imports utils, stats, assertthat, ggplot2, ggthemes, scales, gtools, dplyr, grid, gridExtra

Suggests knitr, roxygen2, testthat, tibble, stringr

See at CRAN