-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
I am trying to use your code from the tutorial using my own data. When I ran gam_vcov = extract_vc(gam_model, digits = 5) , I get the following error:
Error in (function (..., row.names = NULL, check.rows = FALSE, check.names = TRUE, : arguments imply differing number of rows: 2, 3, 1
Traceback:
- extract_vc.gam(gam_model, digits = 5)
- data.frame(vc)
- as.data.frame(x[[i]], optional = TRUE, stringsAsFactors = stringsAsFactors)
- as.data.frame.list(x[[i]], optional = TRUE, stringsAsFactors = stringsAsFactors)
- do.call(data.frame, c(x, alis))
- (function (..., row.names = NULL, check.rows = FALSE, check.names = TRUE,
. fix.empty.names = TRUE, stringsAsFactors = FALSE)
. {
. data.row.names <- if (check.rows && is.null(row.names))
. function(current, new, i) {
. if (is.character(current))
. new <- as.character(new)
. if (is.character(new))
. current <- as.character(current)
. if (anyDuplicated(new))
. return(current)
. if (is.null(current))
. return(new)
. if (all(current == new) || all(current == ""))
. return(new)
. stop(gettextf("mismatch of row names in arguments of 'data.frame', item %d",
. i), domain = NA)
. }
I would appreciate if you could help me with this error.
Kind regards,
Abu
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels