Re: [Rd] Vectorize fails for function with ... arglist
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
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