[R] Trouble when I call a function within another

Duncan Murdoch murdoch at stats.uwo.ca
Mon Aug 4 16:28:46 CEST 2008


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.R 

You 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



More information about the R-help mailing list