RLink`
RLink`

RAttributes

RAttributes[atts]

an RLink container for attributes of R objects.

Details and Options

  • atts must be a sequence of zero, one, or more delayed rules, of the form name :> value, where name must be a string name of an attribute, and value can be any valid R object representation, which RLink can handle.
  • RAttributes is not normally used as a standalone expression, but rather as a part of expressions with heads RVector or RList.
  • For R vectors, the attribute dim is not included in RAttributes in the short form of R object representation, but is included in the long (full) form.

Examples

Basic Examples  (3)

This represents the full internal form of a matrix:

This is equivalent to the following short form:

The following expression represents the full internal form of an R vector with an additional names attribute:

This is equivalent to the following short form:

You can send this vector to R:

This returns the attributes of the vector used above, fetched from R:

Looking at the internal form of this answer, you can see that in R, attributes are stored in a list:

Wolfram Research (2012), RAttributes, Wolfram Language function, https://reference.wolfram.com/language/RLink/ref/RAttributes.html.

Text

Wolfram Research (2012), RAttributes, Wolfram Language function, https://reference.wolfram.com/language/RLink/ref/RAttributes.html.

CMS

Wolfram Language. 2012. "RAttributes." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/RLink/ref/RAttributes.html.

APA

Wolfram Language. (2012). RAttributes. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/RLink/ref/RAttributes.html

BibTeX

@misc{reference.wolfram_2024_rattributes, author="Wolfram Research", title="{RAttributes}", year="2012", howpublished="\url{https://reference.wolfram.com/language/RLink/ref/RAttributes.html}", note=[Accessed: 21-December-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_rattributes, organization={Wolfram Research}, title={RAttributes}, year={2012}, url={https://reference.wolfram.com/language/RLink/ref/RAttributes.html}, note=[Accessed: 21-December-2024 ]}