Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What does the symbol ::: mean in R

Tags:

syntax

r

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)
like image 603
Milktrader Avatar asked Apr 20 '10 13:04

Milktrader


1 Answers

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.

like image 190
Shane Avatar answered Nov 12 '22 18:11

Shane