Am 20.01.2022 um 13:00 schrieb Sven Schreiber:
Hi,
for a given panel dataset with embedded information about the time
dimension structure I want to obtain the periodicity in the time
direction; for example the value 4 if the data are quarterly (for
several cross units, of course, because we're in a panel). I know that
the $pd accessor doesn't work here because in a panel context it gives
me the total length of the time dimension (as documented).
I'm wondering whether there is a better (shorter) way than the following
hansl function and test cases:
To whom it may concern: There's now a new dollar accessor $panelpd which
provides that information (returns NA if it's not a panel dataset). This
will be documented shortly.
thanks
sven