tabyl()
andcrosstab()
now appear in the package manual (#65)- Fixed minor bug per CRAN request -
tabyl()
andcrosstab()
failed to retain ill-formatted variable names only when using R 3.2.5 for Windows (#76) add_totals_row()
works on two-column data.frame (#69)use_first_valid_of()
returns POSIXct-class result when given POSIXct inputs, and handles bad list inputs (specifically POSIXlt) (#71)
Submitted to CRAN!
- The count in
tabyl()
for factor levels that aren't present is now0
instead ofNA
(#48)
- Can call tabyl() on the result of a tabyl(), e.g.,
mtcars %>% tabyl(mpg) %>% tabyl(n)
(#54) get_dupes()
now works on variables with spaces in column names (#62)
- Reached 100% unit test code coverage
- Added a function
adorn_crosstab()
that formats the results of acrosstab()
for pretty printing. Shows % and N in the same cell, with the % symbol, user-specified rounding (method and number of digits), and the option to include a totals row and/or column. E.g.,mtcars %>% crosstab(cyl, gear) %>% adorn_crosstab()
. crosstab()
can be called in a%>%
pipeline, e.g.,mtcars %>% crosstab(cyl, gear)
. Thanks to @chrishaid (#34)tabyl()
can also be called in a%>%
pipeline, e.g.,mtcars %>% tabyl(cyl)
(#35)- Added
use_first_valid_of()
function (#32) - Added minor functions for manipulating numeric data.frames for presentation:
ns_to_percents()
,add_totals_row()
,add_totals_col()
,
crosstab()
returns 0 instead of NA when there are no instances of a variable combination.- A call like
tabyl(df$vecname)
retains the more-descriptive$
symbol in the column name of the result - if you want a legal R name in the result, call it asdf %>% tabyl(vecname)
- Single and double quotation marks are handled by
clean_names()
- Added codecov to measure test coverage
- Added unit test coverage
- Added Travis-CI for continuous integration
- Initial draft of skeleton package on GitHub