tslist | R Documentation |

Change a matrix or data frame to a list of univariate time series

```
tslist(series, simplify = FALSE)
```

`series` |
A matrix or data frame where each row is a time series. |

`simplify` |
Coerce all series in the resulting list to either matrix (multivariate) or numeric (univariate). |

Almost all functions in dtwclust work internally with lists of time series. If you want to avoid constant coercion, create a list of time series once by calling this function.

For matrices and data frames, each **row** is considered as one time series. A list input is
simply passed through.

A list of time series.

The function assumes that matrix-like objects can be first coerced via `base::as.matrix()`

, so
that the result can be indexed with `series[i, ]`

.

No consistency checks are performed by this function.

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.