On Oct 23, 2019, at 8:28 AM, Micha Silver <tsvibar at gmail.com> wrote:
I am trying to run a function (mk.test to find MannKendall trends) using st_apply over a "rolling" window for a time series of rasters in a stars object.
When I use subscript notation to slice out the window dimension with a looping variable I get an error:
Error in loadNamespace(name) : there is no package called ?yr?
Calls: [ ... tryCatch -> tryCatchList -> tryCatchOne -> <Anonymous>
Execution halted
However If I replace the subscript with integers it works fine. (see attached)
What is the correct way to work this out?
Attached is a reprex with a small subset of my data. (The script starts with a long structure, code is at the end)
Thanks
--
Micha Silver
Ben Gurion Univ.
Sde Boker, Remote Sensing Lab
cell: +972-523-665918
<stars_window.R>_______________________________________________
R-sig-Geo mailing list
R-sig-Geo at r-project.org <mailto:R-sig-Geo at r-project.org>