[R] getting values out of functions

Kathryn Jones kathryn.jones at jcu.edu.au
Fri Jul 30 03:02:47 CEST 2004


Hi there,
Just wondering if there's a way to get a value you've 
assigned within a function, out of the function?
For example, 

function () 
{
	testing <-read.table("...",header=TRUE)
}

I want to be able to use 'testing' outside of the function, 
so be able to call ls() and testing be there...
Any ideas?
Thanks!
Kathryn




More information about the R-help mailing list