knn_examples | R Documentation |

It allows to see the examples of the model associated to a
`knnForecast`

object.

```
knn_examples(forecast)
```

`forecast` |
A |

A matrix including the features and targets of the examples
associated with the model of a `knnForecast`

object.

```
pred <- knn_forecasting(ts(1:8), h = 1, lags = 1:2, k = 2)
knn_examples(pred)
```

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.