R中%o%的含义

hi1*_*i15 4 r operator-keyword

我在R中遇到以下情况:

x=x+y%o%c(1.5,1.5)
Run Code Online (Sandbox Code Playgroud)

我想知道%o%这里的含义是什么.我尝试谷歌搜索,但没有太多运气

Señ*_*r O 14

R中有许多使用%...%符号的快捷方式.%o%是数组的外部产品

> 1:3 %o% 1:3
     [,1] [,2] [,3]
[1,]    1    2    3
[2,]    2    4    6
[3,]    3    6    9
Run Code Online (Sandbox Code Playgroud)

还有很多其他的,我最常用的是%in%:

3 %in% c(1,2,3,4) #TRUE
5 %in% c(1,2,3,4) #FALSE
3.4 %in% c(1,2,3,4) #FALSE
Run Code Online (Sandbox Code Playgroud)

还有其他几个,我不知道它们都是我的头脑.但是当你遇到它们时,你可以通过使用%o%类似的反引号?`%o%`或引号?'%o%'(或?"%o%")来检查文档.

由于百分号,他们显然很难谷歌.