Skip to content
wranglr 0.0.2 🚀
New
Updated and improved create_summ_tbl()
new name!
now uses dplyr::group_by() under the hood for ease of use
new snapshot tests
New methods for imputeNAs()
character and factor S3 methods
imputes randomly by sampling according to the distribution of unique values in x and replaces
now the .create_strata() function can use imputeNAs()
does so internally using internal methods rather than on-the-fly
S3 methods for .get_indices()
now dispatches correctly using S3 methods rather than switch() and complex logic
Bugs
Fixed major bug in imputeNAs()
data frame method was indexing incorrectly
removed seq() call and index only on p
this was a bad one …
Improvements
Create vfold_splits() unit tests and minor syntax clean up
added new unit tests (snapshots) for vfold_splits()
fixed a bug that was caused by using the names of breaks after An unlist
now uses a tmp strat_vars variable
all snapshots included under the vfold_splits variant
Simplified .get_indices.default()
no just returns if unknown class
no more NULL for no stratification
this is now handled upstream, in .vfold_splits()
Removed the idx param from .get_indices() methods
this was superfluous and a little hacky
solution isn’t great but considering it is just in the single data frame use case, maybe acceptable
Cleaned up create_kfold()
updated unit tests and simplified code
streamline methods, especially character and factor for .get_indices()
breaks now cannot be NA
Removed
no longer imports the purrr package:
removed all mention of term “adat” and nuke S4 methods
the 'soma_adat' class is also a data frame so this shouldn’t affect it too much to remove the method explicitly. Should cascade into the date frame method
checks in place to ensure attributes are not stripped
wranglr 0.0.1 🎉
Initial release! 🥳
this is v0.0.1 tagged and released