[R] dataframe behavior

Martin Henry H. Stevens hstevens at rci.rutgers.edu
Thu May 3 20:01:28 CEST 2001

Windows98, Emacs20.7, ESS5.1.18

I recently constructing a data.frame "belle" that now does not spew its
contents when I type the name on the command line (see errors below). It
will only do so if I specify columns. Incidently, plot(belle) displays the
pairs plot of all variables.

> belle
Error in as.data.frame.default(x[[i]], optional = TRUE) :
 can't coerce array into a data.frame
> belle[,]
Error in [.data.frame(belle, , ) : Argument "j" is missing, with no default
> class(belle)
[1] "data.frame"
> belle[,1:3]
   block plot trt
1      2   25   9
2      2   26  16
3      2   27   6

Any idea what is going on?

Dr. M. Henry H. Stevens
Postdoctoral Associate
Department of Ecology, Evolution, & Natural Resources
14 College Farm Road
Cook College, Rutgers University
New Brunswick, NJ 08901-8551

email: hstevens at rci.rutgers.edu
phone: 732-932-9631
fax: 732-932-8746

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