recipes 1.0.7
New Steps
step_classdist_shrunken()
, a regularized version ofstep_classdist()
, was added. (#1185)
Improvements
-
step_bs()
andstep_ns()
have gainedkeep_original_cols
argument. (#1164) -
The
keep_original_cols
argument has been added tostep_classdist()
,step_count()
,step_depth()
,step_geodist()
,step_indicate_na()
,step_interact()
,step_lag()
,step_poly()
,step_regex()
,step_window()
. The default for each step is set to preserve past behavior. This change should mean that every step that produces new columns has thekeep_original_cols
argument. (#1167)
Bug Fixes
-
Fixed bugs where
step_classdist()
,step_count()
,step_depth()
,step_geodist()
,step_interact()
,step_nnmf_sparse()
, andstep_regex()
didn't work with empty selection. All steps now leave data unmodified when having empty selections. (#1142) -
step_classdist()
,step_count()
andstep_depth()
no longer returns a column with allNA
s with empty selections. (#1142) -
step_regex()
no longer returns a column with all 0s with empty selections. (#1142) -
The
tidy()
methods forstep_geodist()
,step_nnmf_sparse()
, andstep_sample()
now correctly return zero-row tibbles when used with empty selections. (#1144) -
step_poly_bernstein()
,step_profile()
,step_spline_b()
,step_spline_convex()
,step_spline_monotone()
,step_spline_natural()
, andstep_spline_nonnegative()
now correctly return a zero row tibble when used with empty selection. (#1133) -
Fixed bug where the
tidy()
method forstep_sample()
didn't return anid
column. (#1144) -
check_class()
,check_missing()
,check_new_values()
,check_range()
,step_naomit()
,step_poly_bernstein()
,step_spline_b()
,step_spline_convex()
,step_spline_monotone()
,step_spline_natural()
,step_spline_nonnegative()
, andstep_string2factor()
now throw an informative error if needed non-standard role columns are missing duringbake()
. (#1145)
Breaking Changes
-
step_window()
now throws an error instead of silently overwriting ifnames
argument overlaps with existing columns. (#1172) -
step_regex()
andstep_count()
will now informatively error if name collision occurs. (#1169)