add R.nth

Closes #492