Commits

Paul Hiemstra  committed a215840

Bugfix: When the input of compare.cv was a list, the names
were not extracted correctly

  • Participants
  • Parent commits 248cc6c

Comments (0)

Files changed (1)

File R/autoKrige.cv.r

 	dots = list(...)
     
     # If dots consists of only one entry, which is a list, that list is assigned to dots
-    if(length(dots) == 1 & inherits(dots, "list")) dots = dots[[1]]
+    if(length(dots) == 1 & inherits(dots, "list")) {
+      dots = dots[[1]]
+      if(missing(col.names)) col.names = names(dots)
+    }
 
     # If a user passes output directly from krige.cv, change it to an autoKrige.cv object
     dots = checkIfautokrige.cv(dots)