Skip to content

recipes 1.0.7

Compare
Choose a tag to compare
@topepo topepo released this 10 Aug 23:27
7348d97

New Steps

  • step_classdist_shrunken(), a regularized version of step_classdist(), was added. (#1185)

Improvements

  • step_bs() and step_ns() have gained keep_original_cols argument. (#1164)

  • The keep_original_cols argument has been added to step_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 the keep_original_cols argument. (#1167)

Bug Fixes

  • Fixed bugs where step_classdist(), step_count(), step_depth(), step_geodist(), step_interact(), step_nnmf_sparse(), and step_regex() didn't work with empty selection. All steps now leave data unmodified when having empty selections. (#1142)

  • step_classdist(), step_count() and step_depth() no longer returns a column with all NAs with empty selections. (#1142)

  • step_regex() no longer returns a column with all 0s with empty selections. (#1142)

  • The tidy() methods for step_geodist(), step_nnmf_sparse(), and step_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(), and step_spline_nonnegative() now correctly return a zero row tibble when used with empty selection. (#1133)

  • Fixed bug where the tidy() method for step_sample() didn't return an id 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(), and step_string2factor() now throw an informative error if needed non-standard role columns are missing during bake(). (#1145)

Breaking Changes

  • step_window() now throws an error instead of silently overwriting if names argument overlaps with existing columns. (#1172)

  • step_regex() and step_count() will now informatively error if name collision occurs. (#1169)

Developer

  • Added developer function remove_original_cols() to help remove original columns that are no longer needed. (#1149)

  • Added developer function recipes_remove_cols() to provide standardized way to remove columns by column names. (#1155)