Skip to content

Commit

Permalink
Fixes #406
Browse files Browse the repository at this point in the history
  • Loading branch information
spsanderson committed Apr 3, 2024
1 parent db6b5ff commit c92ac93
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ None

## Minor Fixes and Improvements
1. Fix #401 - Update `tidy_multi_single_dist()` to respect the `.return_tibble` parameter
2. Fix $406 - Updaet `tidy_multi_single_dist()` to exclude the `.return_tibble` parameter
from returning in the distribution parameters.

# TidyDensity 1.3.0

Expand Down
4 changes: 2 additions & 2 deletions R/combine-multi-single-dist-tbl.R
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@ tidy_multi_single_dist <- function(.tidy_dist = NULL,
# Make Dist Type for column ----
dist_type <- dist_type_extractor(atb$tibble_type)

# Get column names from the param_grid in order to make teh dist_type column ----
cols <- names(param_grid |> dplyr::select(-c(.n, .num_sims)))
# Get column names from the param_grid in order to make the dist_type column ----
cols <- names(param_grid |> dplyr::select(-c(.n, .num_sims, .return_tibble)))

if (length(cols) == 1) {
dff$dist_name <- paste0(dist_type, " c(", dff[, cols], ")")
Expand Down

0 comments on commit c92ac93

Please sign in to comment.