Description Usage Arguments See Also

calculate phases via a Discrete Fourier Transformation, but starting at the first time point, such that phase 0/360 indicates peak at time 0, and phase 180 indicates peak at half of the cycle TODO: implement systematic phase error for time series that do not cover multiples of full cycles; phase error related to pi/resolution, see comments in testPhase

1 | ```
calculatePhase(x, cycles, degrees = TRUE)
``` |

`x` |
a time-series matrix with columns as time points,
or a |

`cycles` |
optional integer vector for the DFT components
(number of cycles in the data) for which phases are to be calculated;
all are returned if |

`degrees` |
logical to indicate whether phases should be reported in degrees (0 - 360) or radians (0 - 2*pi) |

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.