Description Usage Arguments See Also Examples

Creates an object of class `timeSeries`

.

1 2 3 | ```
timeSeries(data, positions., units., from = timeCalendar(d = 1,
m = 1, y = 1960), by = "days", k.by = 1, align.by = FALSE,
week.align = NULL)
``` |

`data` |
( |

`positions.` |
( |

`units.` |
( |

`from` |
the starting value of the sequence. A |

`by` |
the spacing between successive values in the sequence. Can be
a Alternatively, it can be one of the following character strings: -
`"milliseconds"` -
`"seconds"` -
`"minutes"` -
`"hours"` -
`"days"` -
`"weekdays"` -
`"bizdays"` -
`"weeks"` -
`"months"` -
`"quarters"` -
`"years"`
giving the time units of intervals between values in the sequence. |

`k.by` |
a non-zero integer giving the width of the interval between consecutive
values in the sequence in terms of the units given in |

`align.by` |
a logical value. If |

`week.align` |
if If `align.by` is`FALSE` , the sequence is adjusted so that all its elements fall on the given weekday.If `align.by` is`TRUE` , the sequence is adjusted to start at midnight.
In either case, the |

`timeSeries`

class,
`timeSequence`

.

1 2 | ```
timeSeries( pos=timeCalendar( d=1:10 ), data = 1:10)
timeSeries(data=data.frame(x=1:10, y=11:20), from="7/4/2000", by="bizdays")
``` |

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.