Greetings, I recently discovered R and how to tackle my own functions. I'm blocked on a simple barrier I guess. I call a function that recognizes a string and return the adequate formula in a main function. This is done through a script. When I type the formula in the main function, it works fine. When I attempted to use a second function (with conditional choice) it doesn't work any more. May you guide me? http://www.nabble.com/file/p18811385/annexe.R annexe.R ----- B. Boulinguiez benoit.boulinguiez at ensc-rennes.fr Ph.D. in Chemistry Ecole Nationale Sup?rieure de Chimie de Rennes 35700 Rennes (FRANCE) -- View this message in context: http://www.nabble.com/Trouble-when-I-call-a-function-within-another-tp18811385p18811385.html Sent from the R help mailing list archive at Nabble.com.
bbouling wrote:> Greetings, > > I recently discovered R and how to tackle my own functions. > I'm blocked on a simple barrier I guess. I call a function that recognizes a > string and return the adequate formula in a main function. This is done > through a script. > > When I type the formula in the main function, it works fine. When I > attempted to use a second function (with conditional choice) it doesn't work > any more. May you guide me? > > http://www.nabble.com/file/p18811385/annexe.R annexe.RYou need to show us the output you get, and tell us the output you want, in a reproducible way. Just showing us a function is not enough: we don't know what inputs to give to the function, etc. Duncan Murdoch