rename R.repeatN and revert argument order

As discussed in #626

Yes, like this idea a lot!