On Tue, 25 Jun 2019, Riccardo (Jack) Lucchetti wrote:
On Mon, 24 Jun 2019, Artur Tarassow wrote:
> Hi all,
>
> for a package I need to know of what type the loaded data set is
> (time-series, cross-sectional, panel). Does gretl have a built-in accessor
> for it? I couldn't find one. Or what's a robust way to determine it?
We have the $datatype accessor.
Uhm, I now realise that there's a discrepancy between the docs and actual
behaviour: if no dataset is loaded, $datatype returns NA, instead of 0 as
stated in the documentation. I suppose I should adapt the code to the
docs, rather than the other way around, right?
-------------------------------------------------------
Riccardo (Jack) Lucchetti
Dipartimento di Scienze Economiche e Sociali (DiSES)
Università Politecnica delle Marche
(formerly known as Università di Ancona)
r.lucchetti(a)univpm.it
http://www2.econ.univpm.it/servizi/hpp/lucchetti
-------------------------------------------------------