Can we have better semantics for R’s attach mechanism?
- 46 Downloads
The semantics of attaching data frames have baffled many R beginners, to the extent that some people recommend that these mechanisms should simply not be taught. However, attaching does offer notational simplification, and it might be argued that, at least to some extent, the problem is that things do not behave like users would reasonably expect. The paper discusses the current situation and comes up with some ideas that could potentially make life easier for the end user. The most radical of these ideas requires substantial changes to the way R handles its search path, but there are also much simpler ideas, requiring only a few small support functions.
KeywordsData Frame Search Path Search List Chained Evaluation Column Order
Unable to display preview. Download preview PDF.