Skip to content

Commit 3a9c8f2

Browse files
committed
hotfix
1 parent e544983 commit 3a9c8f2

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Type: Package
22
Package: parameters
33
Title: Processing of Model Parameters
4-
Version: 0.28.3.5
4+
Version: 0.28.3.6
55
Authors@R:
66
c(person(given = "Daniel",
77
family = "Lüdecke",

R/methods_marginaleffects.R

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@ model_parameters.predictions <- function(
134134
verbose = verbose,
135135
...
136136
))
137+
by_cols <- NULL
137138
} else {
138139
# columns we want to keep
139140
by_cols <- .keep_me_columns(model)
@@ -153,7 +154,7 @@ model_parameters.predictions <- function(
153154
# remove and reorder some columns
154155
out$rowid <- out$rowid_dedup <- NULL
155156
# need to remove "Type", but only if it's not a valid variable name
156-
if (!"Type" %in% by_cols) {
157+
if (!is.null(by_cols) && !"Type" %in% by_cols) {
157158
out$Type <- NULL
158159
}
159160

0 commit comments

Comments
 (0)