[R] c++ equivalent switch statement?

romain at r-enthusiasts.com romain at r-enthusiasts.com
Mon Sep 6 19:37:19 CEST 2010


 Le 06/09/10 19:17, rajesh j a écrit :
> Is there a c++ equivalent switch statement in R?

yes, with the same name. See the "R Language definition" :
http://cran.r-project.org/doc/manuals/R-lang.html#switch

If this is not what you want, maybe you could at least share some C++ code snippet of what you want to reproduce in R. 

Romain

-- 
Romain Francois
Professional R Enthusiast
+33(0) 6 28 91 30 30
http://romainfrancois.blog.free.fr
|- http://bit.ly/bzoWrs : Rcpp svn revision 2000
|- http://bit.ly/b8VNE2 : Rcpp at LondonR, oct 5th
`- http://bit.ly/aAyra4 : highlight 0.2-2



More information about the R-help mailing list