提问人:Forester 提问时间:5/21/2020 最后编辑:Forester 更新时间:5/22/2020 访问量:30
这个赋值运算符意味着什么?[复制]
What does this assignment operator imply? [duplicate]
答:
1赞
Eric
5/21/2020
#1
“attr” 获取对象的特定属性。
“attr<-” 对象、属性的新值,或 NULL 删除 属性。
评论
1赞
Allan Cameron
5/21/2020
当你说可以设置一个属性时,实际上是设置了属性。也就是说,当你这样做时,这实际上是在调用attr
attr<-
attr(x, "key") <- value
'attr<-'(x, "key", value)
评论
attr
获取属性,例如 ,分配/允许您修改attr(iris,"class")
<-
attr
attr<-