Hi Amar, you might have a look at ?ts, which creates time-series objects (as AirPassengers actually is, see class(AirPassengers)).
hth Am 28.07.2011 11:27, schrieb nandan amar: > Hi, > i want to construct a data set similar to "AirPassengers". > Its attributes are following. > >> attributes(AirPassengers) > $tsp > [1] 1949.000 1960.917 12.000 > > $class > [1] "ts" > > > How Can I construct a data set similar to it having same class and attributes. > Thanks > -- > Amar Kumar Nandan > ✉:nandan.a...@gmail.com > http://aknandan.co.nr > > ______________________________________________ > R-help@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. -- Eik Vettorazzi Institut für Medizinische Biometrie und Epidemiologie Universitätsklinikum Hamburg-Eppendorf Martinistr. 52 20246 Hamburg T ++49/40/7410-58243 F ++49/40/7410-57790 ______________________________________________ R-help@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.