I\'m using the knn_forecasting function in R to make k-NN regression on a univariate time series (a stock price).
However, when running the following code in order to