I've just started learning R and am curious about attribute propagation.
I'd like to annotate a vector with custom values (I'm assuming attributes are the right way to do this?), which I've been able to do fairly easily. (Giving background in case this is an X-Y question)
The problem begins when I start manipulating these vectors - I'd like these custom annotations to propagate, or at the very least, have a well defined set of rules for annotation propagation/loss.
I've done some research on this, including this other SO question, that addresses the subsetting function in particular, but I'd like to generalize it a bit further:
- What is the complete list of functions that do not propagate values, or
- how do I find this out?
- Is there a better way to accomplish what I'm doing?
The goal is to apply these annotations, call arbitrary (as much as possible) R functions on the data, and ensure the attributes are maintained. Data frames in particular are of importance here as well.
Thanks