Thanks Rui It works. On 7 August 2012 11:34, Rui Barradas <ruipbarradas at sapo.pt> wrote: > Hello, > > Your problem seems simple, if I understand it correctly. Just add an extra > argument to the caller function, drep(). Christiaan Pauw Nova Institute www.nova.org.za