create0Tcolumns: Make columns for time 0 and time T

View source: R/util.R

create0TcolumnsR Documentation

Make columns for time 0 and time T

Description

Make columns for time 0 and time T

Usage

create0Tcolumns(
  XvV,
  time_colname,
  X_colname = "X",
  v_colname = "v",
  V_colname = "V",
  zero_suffix = "_0",
  T_suffix = "_T"
)

Arguments

XvV

a data frame containing X, v, and V columns.

time_colname

the name of the time column (a string)

X_colname

the name of the X column (default is "X")

v_colname

the name of the v column (default is "v")

V_colname

the name of the V column (default is "V")

zero_suffix

suffix for "0" variables (default is "⁠_0⁠")

T_suffix

suffix for "T" variables (default is "⁠_T⁠")

Value

a data frame containing metadata (time_colname and grouping variables) and columns for X_0, v_0, V_0, X_T, v_T, and V_T.


MatthewHeun/LMDIR documentation built on Jan. 13, 2024, 4:10 a.m.