I have been reading the "R Language Definition" PDF file downloaded from here. And on page 11 I read this:
I wonder what is the difference between the attr
and the attr<-
. Thanks a lot.
I have been reading the "R Language Definition" PDF file downloaded from here. And on page 11 I read this:
I wonder what is the difference between the attr
and the attr<-
. Thanks a lot.
"attr" get specific attributes of an object.
"attr<-" an object, the new value of the attribute, or NULL to remove the attribute.