[R] Read a Time Serie CSV
jasont@indigoindustrial.co.nz
jasont at indigoindustrial.co.nz
Mon May 27 03:36:09 CEST 2002
> > plot(oecd96$gdpcausb)
> Error in xy.coords(x, y, xlabel, ylabel, log) :
> x and y lengths differ
>
> This works:
> plot(oecd96[,1])
>
> What's my fault ?
only data.frame and list objects can use the "$" notation for
subelements. You can still use names, however.
plot(oecd96[,"gdpcausb"])
should work.
Check out "An Introduction to R", which is distributed with R as the
file "R-intro.pdf". This is nicely explained in the chapters "Arrays and
Matricies" and "Lists and data frames".
Cheers
Jason
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
More information about the R-help
mailing list