Skip to content
Prev 75307 / 398502 Next

how to write assignment form of function

On Wed, 10 Aug 2005, Heinz Tuechler wrote:

            
In all good books on S programming, or by studying examples.  But in this 
case the problem is actually about defining functions with the return 
value you expect.
And that would not do what the current function does, which is to merge 
levels as required.

I suggest you look at levels<-.factor in R-devel, which does not drop 
attributes.
This did not return anything!  Try returning 'x'.