Here, I have following generic function:

 

Fn1 <- function(x) {

                ........

                return(x)  # assume x is calculated in previous steps

 

                .........

                return(y)  # assume y is calculated in previous steps

 

                ..........

                return(z)  # assume z is calculated in previous steps

}

 

In this case what fn1 will return. Is it the value of "x" all the time? And
hence this function will never calculate y and z?

 

Thanks and regards,

 

 


	[[alternative HTML version deleted]]

