Implementation of r_set_select()

Targets #176
`insetc` ?