Given: data(AirPassengers) I get a ts data structure AirPassengers in the workspace. How can I generate the code that can create that structure? That is, given an example of a data structure, is there a way to generate the code that can greate that structure? Alternatively, is there a reference that provides a list of dta structures together with a full list of theor respective attributes? [[alternative HTML version deleted]]
dput() Michael On Sun, Jan 29, 2012 at 10:56 AM, Ajay Askoolum <aa2e72e at yahoo.co.uk> wrote:> Given: > > data(AirPassengers) > > I get a ts data structure AirPassengers in the workspace. > > How can I generate the code that can create that structure? That is, given an example of a data structure, is there a way to generate the code that can greate that structure? > > > Alternatively, is there a reference that provides a list of dta structures together with a full list of theor respective attributes? > > ? ? ? ?[[alternative HTML version deleted]] > > ______________________________________________ > R-help at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code.
see dump() or dput(). On Sun, Jan 29, 2012 at 10:56 AM, Ajay Askoolum <aa2e72e at yahoo.co.uk> wrote:> Given: > > data(AirPassengers) > > I get a ts data structure AirPassengers in the workspace. > > How can I generate the code that can create that structure? That is, given an example of a data structure, is there a way to generate the code that can greate that structure? > > > Alternatively, is there a reference that provides a list of dta structures together with a full list of theor respective attributes? > > ? ? ? ?[[alternative HTML version deleted]] > > ______________________________________________ > R-help at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code.