projects
/
agghoo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d1417ec
)
Fix typo
author
Benjamin Auder
<benjamin.auder@somewhere>
Tue, 8 Jun 2021 13:13:01 +0000
(15:13 +0200)
committer
Benjamin Auder
<benjamin.auder@somewhere>
Tue, 8 Jun 2021 13:13:01 +0000
(15:13 +0200)
R/agghoo.R
patch
|
blob
|
blame
|
history
diff --git
a/R/agghoo.R
b/R/agghoo.R
index
4a25b17
..
528df2a
100644
(file)
--- a/
R/agghoo.R
+++ b/
R/agghoo.R
@@
-50,7
+50,7
@@
agghoo <- function(data, target, task = NA, gmodel = NA, params = NA, quality =
params <- as.list(params)
if (!is.na(params) && !is.list(params))
stop("params: numerical, character, or list (passed to model)")
- if (!is.na(gmodel) && !is.character(model) && is.na(params))
+ if (!is.na(gmodel) && !is.character(
g
model) && is.na(params))
stop("params must be provided when using a custom model")
if (is.na(gmodel) && !is.na(params))
stop("model must be provided when using custom params")