[R-SIG-Finance] pl() function from PMwR package split an error: 'x' and 'y' lengths differ

Enrico Schumann e@ @end|ng |rom enr|co@chum@nn@net
Mon Apr 21 20:01:24 CEST 2025


On Mon, 21 Apr 2025, Arnaud Gaboury writes:

[...]

> Yes, it doesn't spit any error too on my machine. So there is an issue
> in my real data set, no idea where. 
> Any idea how I can proceed to understand why it works on a short sample
> and not with the whole set ? Any commands I can pass to debug ?

Check the dimensions of the inputs: `dim(P)[1]` must be the
same as `length(along.timestamp)`.

Other than that, do bisection: Try with half the dataset. If
that fails, try with a quarter; if half the dataset works,
try with three-quarters of the dataset.  And so on.

-- 
Enrico Schumann
Lucerne, Switzerland
https://enricoschumann.net



More information about the R-SIG-Finance mailing list