edsurvey.data.frame to Search PathImplements attach for an edsurvey.data.frame or a light.edsurvey.data.frame by attaching student level variables to the search path
attach(
what,
pos = 2L,
name = deparse1(substitute(what), backtick = FALSE),
warn.conflicts = TRUE
)the environment is returned invisibly with a "name" attribute
equivalent to `what` in base::attach, but can also be an edsurvey.data.frame or light.edsurvey.data.frame
equivalent to `pos` in base::attach
equivalent to `name` in base::attach
equivalent to `warn.conflicts` in base::attach
Blue Webb
Because attach is a standard generic function that does not use method dispatch, we set this function as generic,
which means it overwrites base::attach on loading. If the object to attach is not an edsurvey.data.frame or a light.edsurvey.data.frame,
the function will revert to the standard base method.