A long overdue overhaul of my eeptools package for R was released to CRAN today and should be showing up in the mirrors soon. The release notes for this version are extensive as this represents a modernization of the package infrastructure and the reimagining of many of the utility functions contained in the package. From the release notes:
This is a major update including removing little used functions and renaming and restructuring functions.
New Functionality
- A new package vignette is now included
nth_max
function for finding thenth
highest value in a vectorretained_calc
now accepts user specified values forsid
andgrade
destring
function deprecated and renamed tomakenum
to better reflect the use of the functioncrosstabs
function exported to allow the user to generate the data behindcrosstabplot
but not draw the plot
Deprecated
dropbox_source
deprecated, use therdrop2
packageplotForWord
function deprecated in favor of packages likeknitr
andrmarkdown
mapmerge2
has been deprecated in favor of a testedmapmerge
mosaictabs.labels
has been deprecated in favor ofcrosstabplot
Bug Fixes
nsims
ingelmansim
was renamed ton.sims
to align with thearm
package- Fixed bug in
retained_calc
where user specifiedsid
resulted in wrong ids being returned - Inserted a meaningful error in
age_calc
when the enddate is before the date of birth - Fixed issue with
age_calc
which lead to wrong fraction of age during leap years lag_data
now can do leads and lags and includes proper error messages- fix major bugs for
statamode
including faulty default to method and returning objects of the wrong class - add unit tests and continuous integration support for better package updating
- fix behavior of
max_mis
in cases when it is passed an empty vector or a vector of NA leading_zero
function made robust to negative values- added NA handling options to
cutoff
andthresh
- Codebase is now tested with
lintr
to improve readability