attach.data.frame(what, use.names=T, name=deparse(substitute(what))[[1]], ...) attach.pframe(what, ..., name=deparse(substitute(what))[[1]])
The pframe method differs only in that it first includes all components of the parameter attribute as variables, before attaching the resulting object. Thus, both the variables in the data frame and the parameters are accessible by name from the attached database.
# attach a data frame as working data # note that pos=1 is passed down to attach.default() attach(fuel.frame, pos=1) h <- Weight/Disp. # a new variable detach(1, save="new.fuel.frame")