max_mis
, there is an if
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 in any()
, which evaluates TRUE
if any value in the logical vector is TRUE
.isid
for determining if a combination of variables uniquely define the rows in a dataframestatamode
with method = "last"
thanks to PR from @larcatA CONTRIBUTING.md file modeled after the excellent example in the rio
package by @leeper
leading_zero
function with latest version of Rmapmerge
and ggmapmerge
are no longer necessary thanks to geom_map
and further enhancements to ggplot2
readme.rmd
to include plots in package buildggplot2
theme options, the theme_dpi
functions are now just wrappers for theme_bw
age_calc
(GH #32)ggplot2
and roxygen
updatesnth_max
performance is improved thanks to use of partial sort contributed by @sgibbThis is a major update including removing little used functions and renaming and restructuring functions.
nth_max
function for finding the nth
highest value in a vectorretained_calc
now accepts user specified values for sid
and grade
destring
function deprecated and renamed to makenum
to better reflect the use of the functioncrosstabs
function exported to allow the user to generate the data behind crosstabplot
but not draw the plotdropbox_source
deprecated, use the rdrop2
packageplotForWord
function deprecated in favor of packages like knitr
and rmarkdown
mapmerge2
has been deprecated in favor of a tested mapmerge
mosaictabs.labels
has been deprecated in favor of crosstabplot
nsims
in gelmansim
was renamed to n.sims
to align with the arm
packageretained_calc
where user specified sid
resulted in wrong ids being returnedage_calc
when the enddate is before the date of birthage_calc
which lead to wrong fraction of age during leap yearslag_data
now can do leads and lags and includes proper error messagesstatamode
including faulty default to method and returning objects of the wrong classmax_mis
in cases when it is passed an empty vector or a vector of NAleading_zero
function made robust to negative valuescutoff
and thresh
lintr
to improve readabilitymoves_calc
function from Jason Beckergelmansim
function to do post-estimation prediction on new data from model objects using functionality in the arm
packagestatamode
updated to work with data.table
age_calc
function from Jason Becker given new precision optionlag_data
function to create groupwise nested lags quicklydecomma
, gelmansim
, and statamode
using testthat
packagenew 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 ggplot2statamode
updated to allow for multiple methods for handling multiple modes
emove_stars
deleted and replaced with remove_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)