open_window: Open Window

View source: R/utils.R

open_windowR Documentation

Open Window

Description

calculates the period at each row from the row of interest

Usage

open_window(x, tcolumn, unit = "years", n, i, na.pad)

Arguments

x

dataframe

tcolumn

time column

unit

unit

n

desired n

i

row number

na.pad

logical if 'na.pad = TRUE' incomplete windows (duration of the window < 'n') return 'NA'.

Value

vector


tbrf documentation built on Aug. 21, 2025, 6:04 p.m.