[R] Are infix binary operators ** and ^ aliased?

Peter Dalgaard p.dalgaard at biostat.ku.dk
Wed Jul 12 13:57:28 CEST 2006


Jean lobry <lobry at biomserv.univ-lyon1.fr> writes:

> Dear R-help,
> 
> After making a typo (reminiscent of FORTRAN 77, I guess) I found the
> following:
> 
> >  identical(all.equal(2^(-10:10), 2**(-10:10)), TRUE)
> [1] TRUE
> 
> I have tried to find the documentation about the ** operator but I was
> unsuccesful this way:
> 
> >  sessionInfo()
> Version 2.3.1 (2006-06-01)
> powerpc-apple-darwin8.6.0
> 
> attached base packages:
> [1] "methods"   "stats"     "graphics"  "grDevices" "utils"     "datasets"
> [7] "base"
> >  help("**")
> No documentation for '**' in specified packages and libraries:
> you could try 'help.search("**")'
> >  help.search("\\*\\*")
> No help files found with alias or concept or title matching '\*\*'
> using regular expression matching.
> >  RSiteSearch("**")
> A search query has been submitted to http://search.r-project.org
> The results page should open in your browser shortly
> # --> Too many hits
> 
> Where can I find the documentation about the ** operator?
> 
> Thanks for any hint,

It's a relic, which might be useful to have for someone, but which we
don't advertise:

> quote(3**2)
3^2


-- 
   O__  ---- Peter Dalgaard             Øster Farimagsgade 5, Entr.B
  c/ /'_ --- Dept. of Biostatistics     PO Box 2099, 1014 Cph. K
 (*) \(*) -- University of Copenhagen   Denmark          Ph:  (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk)                  FAX: (+45) 35327907



More information about the R-help mailing list