Skip to content
Prev 14084 / 398502 Next

Accessing just the value of an object but not the attributes

On Tue, 2 Oct 2001, Johann Petrak wrote:

            
Not needed, as

attributes(x) <- NULL

removes all attributes.  I have no idea why this might be useful to you
.. remember that class and dim are attributes, for example.

Because they are not normally visible, assignment functions like
attributes<- are too little appreciated in S programming.
[...]