RLink`
RLink`

FromRForm

FromRForm[expr]

converts a full form of an expression expr, representing some valid R object, to the short form. Returns $Failed on illegal expressions, which do not form a valid RLink representation of an R object.

更多信息和选项

  • Performs the reverse operation as compared to ToRForm.
  • Is invoked automatically by REvaluate, as a final step to transform the internal full form of an expression obtained from R to a short form, which is easier to use.
  • While sometimes useful for consistency checks and debugging, it is not expected that this function will be called often.
  • The "cycle" FromRForm[ToRForm[expr]] should always give back the same expression expr (for legitimate expr, representing valid R objects), except when expr is a scalar of one of the primitive types (numeric, string, or logical), in which case it will be "dressed" in an extra List.

范例

基本范例  (1)

Get a short form of a vector:

Or of a matrix:

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

文本

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

CMS

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

APA

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

BibTeX

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

BibLaTeX

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