What does the symbol ::: mean in R

浪子不回头ぞ 提交于 2020-01-03 08:31:23

问题


I came across this in the following context from B. Pfaff's "Analysis of Integrated and Cointegrated Time Series in R"

## Impulse response analysis of SVAR A−type model 1
args (vars ::: irf.svarest) 2
irf.svara <− irf (svar.A, impulse = ”y1 ” , 3
response = ”y2 ” , boot = FALSE) 4
args (vars ::: plot.varirf) 5
plot (irf.svara)

回答1:


From the help file (you can see this with help(":::")):

The expression 'pkg::name' returns the value of the exported
     variable 'name' in package 'pkg' if the package has a name space.
     The expression 'pkg:::name' returns the value of the internal
     variable 'name' in package 'pkg' if the package has a name space.

In other words ::: is used to directly access a member of a package that is internal (i.e. not exported from the NAMESPACE).

See this related question: R: calling a function from a namespace.



来源:https://stackoverflow.com/questions/2675502/what-does-the-symbol-mean-in-r

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!