[R] Trouble when I call a function within another

bbouling benoit.boulinguiez at ensc-rennes.fr
Tue Aug 5 10:16:15 CEST 2008


Yep, sorry I forgot it :wistle:

so the data are data frames with dim(8,1000) called DATA.ValX and DATA.ValY
(part of the files attached as a xls file)

http://www.nabble.com/file/p18826528/ValX.xls ValX.xls 
http://www.nabble.com/file/p18826528/ValY.xls ValY.xls 

When I call the function "Test" to determine the formula, nls returns an
error; there are no initial values for x and y whereas without the function
"Test" and directly a formula; no error occurred in nls with the same DATA.




Duncan Murdoch-2 wrote:
> 
> 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
> 
> ______________________________________________
> 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.
> 
> 


-----
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-tp18811385p18826528.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list