Skip to content

Commit

Permalink
Minor bug fix in analogs
Browse files Browse the repository at this point in the history
  • Loading branch information
jbedia committed Dec 27, 2014
1 parent e4fefe8 commit ad09d15
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/analogs.R
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,9 @@ analogs <- function(obs, pred, sim, n.neigh = 1, sel.fun = c("random", "mean"),
# Analog dates
if (isTRUE(analog.dates)) {
analog.date.list <- lapply(1:length(d.list), function(x) obs$Dates$start[d.list[[x]]])
attr(obs, "analog.dates") <- analog.date.list
analog.date.list <- NULL
}
attr(obs, "analog.dates") <- analog.date.list
analog.date.list <- NULL
# Analog assignation
if (isTRUE(modelPars$stations)) {
if (n.neigh > 1) {
Expand Down

0 comments on commit ad09d15

Please sign in to comment.