Tag Selected: how to use r