Skip to content

Commit

Permalink
Merge pull request #707 from mitchelloharawild/master
Browse files Browse the repository at this point in the history
Modified is.constant to use approximate matching
  • Loading branch information
robjhyndman authored Jun 21, 2018
2 parents ea6af85 + 55b7002 commit 0fdb430
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/newarima2.R
Original file line number Diff line number Diff line change
Expand Up @@ -779,5 +779,5 @@ checkarima <- function(object) {
is.constant <- function(x) {
x <- as.numeric(x)
y <- rep(x[1], length(x))
return(identical(x, y))
return(isTRUE(all.equal(x, y)))
}

0 comments on commit 0fdb430

Please sign in to comment.