Flip arguments to R.take