RLink`
RLink`

REnvironment

REnvironment[]

a container used by RLink to represent any R environment.

更多信息和选项

  • Only the global R environment is fully supported. All other R environments are still represented by REnvironment[], but the specific information about them is lost. Therefore, R objects whose Mathematica representation contains references to non-global R environments cannot generally be correctly exported back to R.
  • Like RCode, REnvironment is a head providing representation rather than equivalence. Exporting to R objects previously imported to Mathematica (or their parts) containing any of these heads is not guaranteed to produce equivalent objects in the R workspace.
  • Expressions with the REnvironment head transform trivially (are left unchanged) by the functions ToRForm and FromRForm.

范例

基本范例  (1)

This loads RLink:

This creates a simple linear model:

The result is a rather complex R object:

Some parts of this object contain explicit reference to an R environment:

This can also be seen as follows:

Wolfram Research (2012),REnvironment,Wolfram 语言函数,https://reference.wolfram.com/language/RLink/ref/REnvironment.html.

文本

Wolfram Research (2012),REnvironment,Wolfram 语言函数,https://reference.wolfram.com/language/RLink/ref/REnvironment.html.

CMS

Wolfram 语言. 2012. "REnvironment." Wolfram 语言与系统参考资料中心. Wolfram Research. https://reference.wolfram.com/language/RLink/ref/REnvironment.html.

APA

Wolfram 语言. (2012). REnvironment. Wolfram 语言与系统参考资料中心. 追溯自 https://reference.wolfram.com/language/RLink/ref/REnvironment.html 年

BibTeX

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

BibLaTeX

@online{reference.wolfram_2024_renvironment, organization={Wolfram Research}, title={REnvironment}, year={2012}, url={https://reference.wolfram.com/language/RLink/ref/REnvironment.html}, note=[Accessed: 18-November-2024 ]}