MwStatistics | R Documentation |
This function allows you to calculate a variety of statistics in a time series using a moving window.
MwStatistics(dat = NULL, TimeVarCol = 1, ColA = 2, ColB = 3,
win = NULL, stat = NULL, overlap = 0, genplot = TRUE, genDataFrame = FALSE)
dat |
Name of dataset. |
TimeVarCol |
Column number of time variable (EG: Depth or Time) |
ColA |
Column number of first variable |
ColB |
Column number of second variable |
win |
Window Size |
stat |
Calculated Statistic, Requires Quotes |
overlap |
Overlap between windows |
genplot |
If you want a plot to be generated |
genDataFrame |
If you want a dataframe to be generated |
Plot and/or Dataframe
William Kopans - wkopans123@gmail.com
MwStatistics(dat = data.frame(replicate(10,sample(0:10,1000,rep=TRUE))),
TimeVarCol = 1, ColA = 2, ColB = 3, win = 2, stat = "Correlation",
genplot = TRUE, genDataFrame = FALSE, overlap = 0.5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.