[R] Function output

manta mantino84 at libero.it
Sun Sep 20 16:59:51 CEST 2009


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.




More information about the R-help mailing list