Skip to content

Commit

Permalink
Update data_cut.R
Browse files Browse the repository at this point in the history
  • Loading branch information
strengejacke committed May 13, 2022
1 parent b6f4e2a commit a36eb40
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions R/data_cut.R
Original file line number Diff line number Diff line change
Expand Up @@ -312,20 +312,20 @@ data_cut.grouped_df <- function(x,
x[rows, ] <- data_cut(
x[rows, , drop = FALSE],
split = split,
n_groups = split,
n_groups = n_groups,
range = range,
lowest = lowest,
labels = labels,
select = select,
exclude = exclude,
append = append,
append = FALSE, # need to set to FALSE here, else variable will be doubled
ignore_case = ignore_case,
verbose = verbose,
...
)
}
# set back class, so data frame still works with dplyr
attributes(x) <- info
attributes(x) <- utils::modifyList(info, attributes(x))
x
}

Expand Down

0 comments on commit a36eb40

Please sign in to comment.