Re: [Rd] A rep_each function

2014-03-23 Thread Hervé Pagès
Hi, On 03/23/2014 05:42 AM, Richard Cotton wrote: The rep function is very versatile, but that versatility comes at a cost: it takes a bit of effort to learn (and remember) its syntax. This is a problem, since rep is one of the first functions many beginners will come across. Of the three main

[Rd] A rep_each function

2014-03-23 Thread Richard Cotton
The rep function is very versatile, but that versatility comes at a cost: it takes a bit of effort to learn (and remember) its syntax. This is a problem, since rep is one of the first functions many beginners will come across. Of the three main uses of rep, two have simpler alternatives. rep(x, t