- Fixed package documentation issues arising from changes in
roxygen
- Made package startup message align with version number
- Removed deprecated mapping functions to address #45 the sunsetting of
maptools
- Cleaned up old and redirected URLs
- Update to avoid CRAN check warnings on some platforms
- Updated unit tests to avoid warnings associated with the new random number generator in R 3.5.3
- In
max_mis
, there is anif
predicate that checks if a class is of an invalid type. Because R objects can have multiple classes, this statement relies on the R semantics that the first value of the logical vector returned by the predicate is used. This is a feature R-core is looking to remove as it has considerable performance penalties. This check is now wrapped inany()
, which evaluatesTRUE
if any value in the logical vector isTRUE
.
- New function
isid
for determining if a combination of variables uniquely define the rows in a dataframe
- Fixed error in
statamode
withmethod = "last"
thanks to PR from @larcat - Fix import compatibility with ggplot2
- Minor fixes for CRAN repository compliance in dependencies contained in vignettes
A CONTRIBUTING.md file modeled after the excellent example in the rio
package
by @leeper
- Fix compatibiltiy issue for
leading_zero
function with latest version of R
- Thanks to new and better tools the mapping functions
mapmerge
andggmapmerge
are no longer necessary thanks togeom_map
and further enhancements toggplot2
- Revise
readme.rmd
to include plots in package build
- Thanks to new
ggplot2
theme options, thetheme_dpi
functions are now just wrappers fortheme_bw
- Fixed logical test in
age_calc
(GH #32) - Fixed issue with calls to library in examples (GH #33)
- Compatibility with
ggplot2
androxygen
updates
nth_max
performance is improved thanks to use of partial sort contributed by @sgibb
This is a major update including removing little used functions and renaming and restructuring functions.
- 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
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
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
moves_calc
function from Jason Beckergelmansim
function to do post-estimation prediction on new data from model objects using functionality in thearm
packagestatamode
updated to work withdata.table
age_calc
function from Jason Becker given new precision optionlag_data
function to create groupwise nested lags quickly
- unit tests for
decomma
,gelmansim
, andstatamode
usingtestthat
package
-
new functions for building maps with shapefiles including
mapmerge
to merge a dataframe and a shapefile, andggmapmerge
to convert this to a document for making a map in ggplot2
-
statamode
updated to allow for multiple methods for handling multiple modes -
emove_stars
deleted and replaced withremove_char
to allow for users to specify an arbitrary character string to be removed -
add
plotForWord
function to export plots in a Windows MetaFile for inclusion in Microsoft Office documents -
add
age_calc
function to allow calculating the age of a vector of birthdates relative to the current date (h/t Jason Becker)
- fix typos in documentation
- fix startup message behavior
- reduce dependencies of the package dramatically so loading is faster and more lightweight