data(AirPassengers) brings AirPassengers into the workspace. How can I
idenfity what the structure of AirPassengers is? Is it a data.frame, a table
etc. etc.
[[alternative HTML version deleted]]
__
R-help@r-project.org mailing list
On 21.01.2012 19:12, Ajay Askoolum wrote:
data(AirPassengers) brings AirPassengers into the workspace. How can I
idenfity what the structure of AirPassengers is? Is it a data.frame, a table
etc. etc.
1. read the help page!
?AirPassengers
2. Look at the structure by
str(AirPassengers)
str() is the most informative; class() may also be helpful.
data(AirPassengers)
class(AirPassengers)
[1] ts
str(AirPassengers)
Time-Series [1:144] from 1949 to 1961: 112 118 132 129 121 135 148
148 136 119 ...
For cases like this, with data included in R and documented,
?AirPassengers
is
Thank you.
class(AirPassengers) is what I was looking for i.e. a generic way of
identification.
[[alternative HTML version deleted]]
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting
4 matches
Mail list logo