[R] Best way to export values from a function?

Jason Rupert jasonkrupert at yahoo.com
Thu Jul 9 02:34:46 CEST 2009


Maybe there is a great website out there or white paper that discusses this but again my Google skills (or lack there of) let me down.

I would like to know the best way to export several doubles from a function, where the doubles are not an array.  

Here is a contrived function similar to my needs:

multipleoutput<-function(x)
{
	squared<-x^2
	cubed<-x^3
	exponentioal<-exp(x)
	factorialVal<-factorial(x)
	
}

Thanks again for all your help.




More information about the R-help mailing list