[R] Making an S3 object act like a data.frame

hadley wickham h.wickham at gmail.com
Tue Mar 7 23:37:52 CET 2006


> > > x$total_bill
> > Error in "$.default"(x, "total_bill") : invalid subscript type
>
> where/how is "$.default"() defined?  I don't have one;
>
> > getAnywhere("$.default")
> no object named '$.default' was found

Neither do I.  I guess there is some internal magic going on for $.

Hadley




More information about the R-help mailing list