Description Usage Arguments Details Value Examples

`align`

returns the subset of `data.table`

`x`

that
aligns on the temporal vector `y`

1 |

`x` |
the |

`y` |
the |

`start` |
scalar or vector of same length as |

`end` |
scalar or vector of same length as |

`func` |
a function taking one argument and which provides an
arbitrary aggregation of its argument; if |

For each element in `y`

, intervals are created around this
element with `start`

and `end`

. All the elements of
`x`

that fall within this interval are given as argument to
the function `func`

. The function `func`

show reduce
this `data.frame`

to one unique row that will be associated
with the `nanotime`

value in `y`

.

a `data.table`

time-series of the same length as
`y`

; this is a subset of `x`

with the
`nanotime`

index of `y`

1 2 3 4 5 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.