R/RunWindow.R

Defines functions RunWindow

RunWindow <- function(rwl, start = FirstYear(rwl), winLength = 50) {
  a <- as.integer(rownames(rwl))
  b <- a >= start & a <= start + winLength - 1
  win <- subset(rwl, subset = b)
  win <- na.omit(t(win))
  win <- as.data.frame(t(win))
  return(win)
}
# RunWindow(rwl, start=1901)

Try the detrendeR package in your browser

Any scripts or data that you put into this service are public.

detrendeR documentation built on April 16, 2022, 1:06 a.m.