Re: [Rd] Vectorize fails for function with ... arglist

2009-06-03 Thread Peter Dalgaard
Stavros Macrakis wrote: > Vectorize is defined to return a function that acts as if 'mapply' was > called. > > So we have: > >> mapply(dput,1:2)# mapply form > 1L # calls dput on each element of 1:2 > 2L > [1] 1 2 >> Vectorize(dput)(1:2)# V

[Rd] Vectorize fails for function with ... arglist

2009-06-02 Thread Stavros Macrakis
Vectorize is defined to return a function that acts as if 'mapply' was called. So we have: > mapply(dput,1:2)# mapply form 1L # calls dput on each element of 1:2 2L [1] 1 2 > Vectorize(dput)(1:2)# Vectorize form 1L