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

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to