Hi there.I encountered an issue that puzzled me while trying to save an R dataset data to re-open in Gretl from inside foreign {} end foreigngretl.export(x) saves in .csv but loses information (column and rows, keeps only the central data). I tried many set.As an example, the native AirPassengers dataset:
/* ------------ script ----------------*/set R_functions onforeign language=R
library(ggplot2)library(ggfortify)library(remotes)
autoplot(AirPassengers)p<-autoplot(AirPassengers, ts.colour = 'blue')p + ggtitle('AirPassengers') + xlab('Year') + ylab('Passengers')
data <- as.matrix(AirPassengers) #fails
Your comment here suggests that it's the first line that somehow
fails. This is purely in the R world, gretl doesn't have anything
to do with it.
It would be helpful if you could trim down your example some
more, to get to the core and expose the data export problem that
(perhaps) you are seeing. For example, maybe try with some trivial
and/or artificial data.
cheers
sven