Skip to content
Snippets Groups Projects
Commit c04a9d73 authored by Mauricio Zambrano-Bigiarini's avatar Mauricio Zambrano-Bigiarini
Browse files

hydromod.R: 'window' nstead of 'window.zoo'

parent d0909734
No related branches found
No related tags found
No related merge requests found
...@@ -163,7 +163,7 @@ hydromod <- function( ...@@ -163,7 +163,7 @@ hydromod <- function(
if (!zoo::is.zoo(obs)) { if (!zoo::is.zoo(obs)) {
stop( "Invalid argument: 'obs' must be a zoo or xts object to use 'gof.Ini' !") stop( "Invalid argument: 'obs' must be a zoo or xts object to use 'gof.Ini' !")
} else obs <- zoo:window.zoo(obs, start=gof.Ini) } else obs <- window(obs, start=gof.Ini)
if (!zoo::is.zoo(sim)) { if (!zoo::is.zoo(sim)) {
stop( "Invalid argument: 'sim' must be a zoo or xts object to use 'gof.Ini' !") stop( "Invalid argument: 'sim' must be a zoo or xts object to use 'gof.Ini' !")
} else sim <- window(sim, start=gof.Ini) } else sim <- window(sim, start=gof.Ini)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment