Question: what is attr in r?
Answer: The attributes function returns or sets all attributes of a data object. The attr function returns or sets one specific attribute of a data object. The structure function sets additional attributes of a data object.