Good afternoon, I know it is a simple question but I cannot figure out how to solve this issue. I have a function that calculate two objects. I would like to choose everytime about the tree object, with default to not show it.
OP<-function(S=100,X,sigma,mu=0,r=0,time=1,n) { value=(S) ...... tree = matrix(rev(tree), byrow = FALSE, ncol = n + 1) return(value[1]) } Thanks -- View this message in context: http://www.nabble.com/Function-output-tp25530073p25530073.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.