timesteps: Get timesteps from panel matrix Y

View source: R/utils.R

timestepsR Documentation

Get timesteps from panel matrix Y

Description

timesteps are stored as colnames(Y), but column names cannot be Date objects. Instead, we use strings. If they are strings convertible to dates, return that

Usage

timesteps(Y)

Arguments

Y

a matrix

Value

its column names interpreted as Dates if possible


synth-inference/synthdid documentation built on Jan. 26, 2024, 7:21 a.m.