Skip to content
Back to formatted view

Raw Message

Message-ID: <458692D2.7090401@stats.uwo.ca>
Date: 2006-12-18T13:08:34Z
From: Duncan Murdoch
Subject: return()
In-Reply-To: <OFFB56F4D3.5C9B006B-ON80257248.003CC983-80257248.003E0833@iop.kcl.ac.uk>

On 12/18/2006 6:06 AM, Timothy.Mak at iop.kcl.ac.uk wrote:
> Dear R Help, 
> 
> Why is it that if you try to return more than one objects using return(), 
> it says it is 'deprecated'? So how do I return more than 1 objects back to 
> the parent function? 

Put them in a list, e.g.

return(a,b)

should be coded as

return(list(a,b))

Duncan Murdoch