The ts.wedderburn and ts.lakenumber functions are failing. You can use the wedderburn/lakenumber functions (the not ts versions) to estimate these metrics for each times step of the series so it is part of the ts function. Looks like it is in the layer.temperature portion of the function.
Error is: Error in xy.coords(x, y) : 'x' and 'y' lengths differ
The ts.wedderburn and ts.lakenumber functions are failing. You can use the wedderburn/lakenumber functions (the not ts versions) to estimate these metrics for each times step of the series so it is part of the ts function. Looks like it is in the layer.temperature portion of the function.
Error is: Error in xy.coords(x, y) : 'x' and 'y' lengths differ
Repeatable error example attached: example error.zip