getAttrib.RdGets and Sets an Attribute of an R Object
getAttrib(vec, name)
setAttrib(vec, name, val)getAttrib() returns (SEXP) the value of attribute name.
setAttrib() returns (SEXP) a copy of R object vec with attribute name set.
(SEXP)
#include <Rinternals.h>
SEXP getAttrib(SEXP vec, SEXP name)
SEXP setAttrib(SEXP vec, SEXP name, SEXP val)