You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fact.factor() not longer simply returns x but rather updates the levels and integer values to confirm with other fact() methods. fact.factor() will retain all levels of the original value, reorder the levels, and append NA if necessary
fact.fact() added to return a correctly formatted fact()
fact.logical() now orders levels as TRUE then FALSE, and NA if present
fact.Date() and fact.POSIXt() added, which simply call fact.numeric()
print.fact() method added to print a fact vector as a factor
as_ordered.factor() and as_ordered.ordered() now call fact() to check levels
Fixes
functions that check if an argument is a vector no long use is.vector() directly; arguments passed with attributes that when removed fulfill is.vector() are accepted
todos() and fixmes() now correctly show tags for .Rmd files
correction to error message in limit()
adds missing sort argument to props()
pseudo_id.factor() no longer returns NA_integer when a value is NA or a level is NA and correctly resets the order of the levels from the factor to their order of appearance
flip.data.frame() no longer coerces single column data.frames #36
New features
fact.pseudo_id() and pseudo_id.pseudo_id() methods added
adds as_ordered() to quickly create ordered factors using fact()
adds char2fact() to convert character vectors (or columns in a data.frame) to factors based on the number unique values
adds tableNA() to make a table from NA values
round_by() gains an additional argument include0 which if FALSE will replace 0 values with by
assign_labels.data.frame() gains an additional argument .missing to set how to control for missing labels: you can now use a warning for a missing label (instead of an error) or silently ignore any missing labels
sort_names() gains a new argument numeric to try to sort names of x by their numeric value #26