[Rd] ** operator

Tobias Verbeke tobias.verbeke at telenet.be
Thu May 15 13:07:52 CEST 2008


Dear list,

I did not find any mentioning of the fact
that the ** operator can be used as a
synonym for the ^ operator.

 > 5 ** 2
[1] 25

Searching of ** in the R Reference Index only leads
to some examples in the mgcv documentation.

Equally ?"**" does not open the arithmetic
operators help page, but produces

 > ?"**"
No documentation for '**' in specified packages and libraries:
you could try 'help.search("**")'

Is there any reason to this or am I overlooking
something ?

Many thanks in advance,
Tobias

 > sessionInfo()
R version 2.7.0 (2008-04-22)
i486-pc-linux-gnu

locale:
LC_CTYPE=en_US.UTF-8;LC_NUMERIC=C;LC_TIME=en_US.UTF-8;LC_COLLATE=en_US.UTF-8;LC_MONETARY=C;LC_MESSAGES=en_US.UTF-8;LC_PAPER=en_US.UTF-8;LC_NAME=C;LC_ADDRESS=C;LC_TELEPHONE=C;LC_MEASUREMENT=en_US.UTF-8;LC_IDENTIFICATION=C

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base



More information about the R-devel mailing list