[英]What does the @ symbol mean in R?
See ?'@'
: 参见
?'@'
:
Description: 描述:
Extract the contents of a slot in a object with a formal (S4) class structure. 提取具有正式(S4)类结构的对象中插槽的内容。
Usage: 用法:
object@name
... ...
The S language has two object systems, known informally as S3 and S4. S语言有两个对象系统,非正式地称为S3和S4。
methods
package, attached by default since version 1.7.0. methods
包获得,默认情况下自1.7.0版开始附带。 See also this document: S4 Classes and Methods . 另请参见本文档: S4类和方法 。
正如其他人所说的,@符号用于S4类,但这是Google R风格指南的注释:“除非有充分的理由使用S4对象或方法,否则请使用S3对象和方法。”
您将需要阅读使用@符号的S4类。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.