2010-04-20 38 views
8

我碰到這個排在下面的情況下,從B.百福的「綜合的分析和協整的時間序列R」什麼符號:::平均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) 
+2

你可以看到幫助頁面??:::「'。 – Marek 2010-04-20 13:44:15

回答

10

從幫助文件(可以看到這與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. 

換句話說:::被用於直接訪問一個包,是內部(即,不是從NAMESPACE導出)的成員。

看到這個相關的問題:R: calling a function from a namespace

+1

謝謝,我真的很討厭發佈這些問題,但谷歌是無用的,幫助文件是非常不友善的編程新手。我可以問一下這個文件有哪些幫助文件? – Milktrader 2010-04-20 13:48:46

+2

只需調用:'help(「:::」)'。 – Shane 2010-04-20 13:52:18

+0

就像廣告中那樣工作,再次感謝 – Milktrader 2010-04-20 13:58:39