replacing `table()` with `duplicated()` in `rename()`

Following @wch 's suggestion in #194