Description Usage Arguments Value Examples

Subset a 'timeSeries' objects due to different aspects.

`[` | "[" method for a 'timeSeries' object, |

`[<-` | "[<-" method to assign value for a subset of a 'timeSeries' object, |

`window` | Windows a piece from a 'timeSeries' object, |

`cut` | A no longer used synonyme for window, |

`head` | Returns the head of a 'timeSeries' object, |

`tail` | Returns the tail of a 'timeSeries' object, |

`outliers` | Removes outliers from a 'timeSeries' object. |

1 2 3 4 5 6 7 8 9 10 11 12 13 | ```
## S4 method for signature 'timeSeries'
window(x, start, end, ...)
## S4 method for signature 'timeSeries'
head(x, n = 6, recordIDs = FALSE, ...)
## S4 method for signature 'timeSeries'
tail(x, n = 6, recordIDs = FALSE, ...)
## S4 method for signature 'timeSeries'
outlier(x, sd = 3, complement = TRUE, ...)
## S4 method for signature 'timeSeries'
cut(x, from, to, ...)
``` |

`complement` |
[outlierSeries] - |

`from, to` |
starting date and end date, |

`start, end` |
starting date and end date, |

`n` |
[head][tail] - |

`recordIDs` |
[head][tail] - |

`sd` |
[outlierSeries] - |

`x` |
an object of class |

`...` |
arguments passed to other methods. |

All functions return an object of class 'timeSeries'.

1 2 3 4 5 6 7 8 9 10 11 12 13 | ```
## Create an Artificial timeSeries Object -
setRmetricsOptions(myFinCenter = "GMT")
charvec <- timeCalendar()
set.seed(4711)
data <- matrix(exp(cumsum(rnorm(12, sd = 0.1))))
tS <- timeSeries(data, charvec, units = "tS")
tS
## Subset Series by Counts "[" -
tS[1:3, ]
## Subset the Head of the Series -
head(tS, 6)
``` |

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.