add rcpp version of event_id called uidvec