BREAKING CHANGES AND DEPRECATIONS
-
datawizard now requires R >= 4.0 (#515).
-
Argument
drop_na
indata_match()
is deprecated now. Please use
remove_na
instead (#556). -
In
data_rename()
(#567):- argument
pattern
is deprecated. Useselect
instead. - argument
safe
is deprecated. The function now errors whenselect
contains unknown column names. - when
replacement
isNULL
, an error is now thrown (previously, column
indices were used as new names). - if
select
(previouslypattern
) is a named vector, then all elements
must be named, e.g.c(length = "Sepal.Length", "Sepal.Width")
errors.
- argument
-
Order of arguments
by
andprobability_weights
inrescale_weights()
has
changed, because formethod = "kish"
, theby
argument is optional (#575). -
The name of the rescaled weights variables in
rescale_weights()
have been
renamed.pweights_a
andpweights_b
are now namedrescaled_weights_a
andrescaled_weights_b
(#575). -
print()
methods fordata_tabulate()
with multiple sub-tables (i.e. when
length ofby
was > 1) were revised. Now, an integrated table instead of
multiple tables is returned. Furthermore,print_html()
did not work, which
was also fixed now (#577). -
demean()
(anddegroup()
) gets anappend
argument that defaults toTRUE
,
to append the centered variables to the original data frame, instead of
returning the de- and group-meaned variables only. Useappend = FALSE
to
for the previous default behaviour (i.e. only returning the newly created
variables) (#579).
CHANGES
-
rescale_weights()
gets amethod
argument, to choose method to rescale
weights. Options are"carle"
(the default) and"kish"
(#575). -
The
select
argument, which is available in different functions to select
variables, can now also be a character vector with quoted variable names,
including a colon to indicate a range of several variables (e.g."cyl:gear"
)
(#551). -
New function
row_sums()
, to calculate row sums (optionally with minimum
amount of valid values), as complement torow_means()
(#552). -
New function
row_count()
, to count specific values row-wise (#553). -
data_read()
no longer shows warning about forthcoming breaking changes
in upstream packages when reading.RData
files (#557). -
data_modify()
now recognizesn()
, for example to create an index for data
groups with1:n()
(#535). -
The
replacement
argument indata_rename()
now supports glue-styled
tokens (#563). -
data_summary()
also accepts the results ofbayestestR::ci()
as summary
function (#483). -
ranktransform()
has a new argumentzeros
to determine how zeros should be
handled whensign = TRUE
(#573).
BUG FIXES