-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
a4ahcxval error due to character in window() function #8
Comments
Is this with the objects in the package? Have you tried running a4adiags/demo/demo.R? I am adding an example run to xcval help page
|
I've tried to run the example in the vignette, using the |
I'll check, but window works on character, the year dimname, so no need for an(). plotXval is in ggplotFL, which should be loaded by a4ahcxval |
I reinstalled ggplotFL and plotXvar works fine now, |
a4ahcxval()
throws an error:Error in h(simpleError(msg, call)) : error in evaluating the argument 'object' in selecting a method for function 'FLStocks': assignment of an object of class “character” is not valid for @‘range’ in an object of class “FLStock”; is(value, "numeric") is not TRUE
maybe replace lines 148 -149 in xval.R with:
stocks <- FLStocks(lapply(names(stocks), function(x) window(stocks[[x]], end=an(x))))
Thank you,
Danai
The text was updated successfully, but these errors were encountered: