If I define my function that includes others "internal functions", how can I
define the parameter's functions?
That is:

myfunc<-function(y){...............

func.int1<- function(x){ sum(x}}
func.int2<-function(z){funct.int1(z)^2} .............................
 }

Is it possible to use func.int1 into func.into2? or R doesn't identify
func.int1 into func.into2?

Another question:
If I do

 myfunc<-function(y){...............
 z<-y^3

func.int1<- function(x){ sum(x}}
func.int2<-function(z){z^2}
.............................
 }

func.int2 is based on z, but now is z=y^3 or a generical object?


thanks

pestalozzi

        [[alternative HTML version deleted]]

______________________________________________
[email protected] 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.

Reply via email to