[R] Problem with a defined function which cannot access a function defined outside of the function

2009-04-16 Thread unbekannt


 hi everyone,

 i have a problem with a function that i defined:

 the function needs to use a function which is defined outside the function
but
 i realised that this is not working. a friend told me that this must be a
problem with
 hidden parameters.

 a workaround works when i just define all parameters instead of using the
function
 itself. now the problem is that i want to integrate the function and i'm
not
 sure how to do it with this workaround since i have a plot of the function
and
 a big vektor with all points of the plot on the x-axis only.

 Any help?

 Thanks
 
-- 
View this message in context: 
http://www.nabble.com/Problem-with-a-defined-function-which-cannot-access-a-function-defined-outside-of-the-function-tp23071568p23071568.html
Sent from the R help mailing list archive at Nabble.com.

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


Re: [R] Problem with Loop and overwritten results

2009-04-13 Thread unbekannt


thank you so much!
this solved my problem


unbekannt wrote:
 
 
  Dear all,
 
  I am a newbie to R and practising at the moment.
 
  Here is my problem:
 
  I have a programme with 2 loops involved.
  The inner loop get me matrices as output and safes all values for me.
 
  Now once I wrote a 2nd loop around the other loop in order to
  repeat the inner loop a couple of times, the results are overwritten and
  i found no way how to actually put the output results in a vector.
 
  I can receive single results only, like this
 
  [1] number
  [1] number2
 
 
 but it want it rather like this
 
 [1] number number2 number3 ...
 
 any advice?
 
 Thanks
 unbekannter weise
 
  
 
:clap:
-- 
View this message in context: 
http://www.nabble.com/Problem-with-Loop-and-overwritten-results-tp23013391p23019655.html
Sent from the R help mailing list archive at Nabble.com.

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


[R] Problem with Loop and overwritten results

2009-04-12 Thread unbekannt


 Dear all,

 I am a newbie to R and practising at the moment.

 Here is my problem:

 I have a programme with 2 loops involved.
 The inner loop get me matrices as output and safes all values for me.

 Now once I wrote a 2nd loop around the other loop in order to
 repeat the inner loop a couple of times, the results are overwritten and
 i found no way how to actually put the output results in a vector.

 I can receive single results only, like this

 [1] number
 [1] number2


but it want it rather like this

[1] number number2 number3 ...

any advice?

Thanks
unbekannter weise

 
-- 
View this message in context: 
http://www.nabble.com/Problem-with-Loop-and-overwritten-results-tp23013391p23013391.html
Sent from the R help mailing list archive at Nabble.com.

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