[R] What is the correct syntax of "for" or "if" in Rexcel

Jeff Newmiller jdnewmil at dcn.davis.ca.us
Wed Mar 21 00:33:55 CET 2012


A) This is the wrong list for StatConn questions.

B) My guess would be that you need to send the entire loop in one call.
---------------------------------------------------------------------------
Jeff Newmiller                        The     .....       .....  Go Live...
DCN:<jdnewmil at dcn.davis.ca.us>        Basics: ##.#.       ##.#.  Live Go...
                                      Live:   OO#.. Dead: OO#..  Playing
Research Engineer (Solar/Batteries            O.O#.       #.O#.  with
/Software/Embedded Controllers)               .OO#.       .OO#.  rocks...1k
--------------------------------------------------------------------------- 
Sent from my phone. Please excuse my brevity.

Dong-Joon Lim <tgno3.com at gmail.com> wrote:

>Hello thankful R friends,
>
>Can I use iteration (for) or conditional (if) syntax in rexcel using
>rrun?
>I've finished coding my program and want to run through Excel.
>I just want to run such as
>
>Call rinterface.RRun("for(i in 1:10){")
>Call rinterface.RRun("a[i,1]<-i")
>Call rinterface.RRun("}")
>
>But it doesn't work.
>Any solution or trick to use "for" or "if" syntax?
>
>
>Thanks in advance as always,
>Dong-Joon
>
>	[[alternative HTML version deleted]]
>
>______________________________________________
>R-help at 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.



More information about the R-help mailing list