attach {tidyEdSurvey}R Documentation

Attach an edsurvey.data.frame to Search Path

Description

Implements attach for an edsurvey.data.frame or a light.edsurvey.data.frame by attaching student level variables to the search path

Usage

attach(
  what,
  pos = 2L,
  name = deparse1(substitute(what), backtick = FALSE),
  warn.conflicts = TRUE
)

Arguments

what

equivalent to 'what' in base::attach, but can also be an edsurvey.data.frame or light.edsurvey.data.frame

pos

equivalent to 'pos' in base::attach

name

equivalent to 'name' in base::attach

warn.conflicts

equivalent to 'warn.conflicts' in base::attach

Details

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.

Value

the environment is returned invisibly with a "name" attribute

Author(s)

Blue Webb

See Also

attach


[Package tidyEdSurvey version 0.1.3 Index]