When I attach data frames I often want to be able to refer to the whole
data frame rather then one of its components. For example:

 

attach (my.data.frame)

summary(my.data.frame)

 

That's fine but often the frame has a very long name so I'd prefer some
shorthand way of referring to it by its position on the search list.
This applies especially to cases where I have a nested data frame so I
might do 

 

attach(my.data.frame$mycomponent)

summary(my.data.frame$mycomponent)

 

 I have a recollection that there was a way of doing this with S-Plus
but I haven't been able to figure out how to do it in R (I have looked
at attach, get, sys.frame, etc. to no avail). 

 

Is there a built-in way of doing this? Thanks. 

 

 Jeff

 


	[[alternative HTML version deleted]]

