Skip to content
Prev 165166 / 398506 Next

understanding recursive functions

Sorry, I forgot the final '}' .  Or I think you can eliminate the leading '{' and final '}' in this case.

 q <- function(x,h) {if (x < 2) q(x+h,h) else return(x)}