Skip to content

Commit 438575e

Browse files
committed
fix issue in create.sub.objects
that was not clever.
1 parent 3f5a2c3 commit 438575e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

R/datplot_utility.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,9 +196,9 @@ create.sub.objects <- function(DAT_mat, stepsize) {
196196
result <- as.data.frame(matrix(ncol = 6, nrow = outputrows+100))
197197

198198
diffs <- DAT_mat[,"datmax"]-DAT_mat[,"datmin"]
199+
diffs[diffs == 0] <- 1
199200

200201
if (any(diffs < stepsize)) {
201-
diffs <- diffs[diffs < stepsize]
202202
warning(paste("stepsize is larger than the range of the closest dated object at Index = ",
203203
paste(which(diffs < stepsize), collapse = ", "), "). For information see documentation of get.step.sequence().", sep = ""))
204204
}

0 commit comments

Comments
 (0)