Description Usage Arguments Value Author(s) Examples

Given a numeric vector `Y`

, removes a linear trend from it.

1 | ```
detrend(Y)
``` |

`Y` |
numeric vector to be de-trended |

Returns a vector `X`

where `X[i] = Y[i] - a - b * i`

,
where `a`

and `b`

describe the linear trend in Y.

Matthew Clegg [email protected]

1 2 3 4 5 6 7 |

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.