Tag Selected: creating data frame in R