On Thu, 14 Sep 2017, Allin Cottrell wrote:
On Thu, 14 Sep 2017, oleg_komashko(a)ukr.net wrote:
[...]
> As for me, the most tedious thing
> with Main/Tools/Start GNU R
> are time series
> In this case class(gretldata)->"mts"
[W]e could easily revise our R-data exporter [...]
Now in git and snapshots I've made an option available. Under the
"foreign" command the option is --frame; under "/Tools/Start GNU R"
it's a little dialog box with the choices to send our data (a) as a
multiple time series object (what we already do) or as a data frame
(as per Oleh, with columns set as "ts").
These things only apply if the current gretl dataset is time series.
Illustration:
<hansl>
open data9-7 --quiet
list L = QNC INCOME
# the default method
foreign language=R --send-data=L
gretldata
gretldata[,1]
# "QNC" would not work here
end foreign
# Oleh's preferred method
foreign language=R --send-data=L --frame
gretldata
QNC
end foreign
</hansl>
Allin