atorus-research / metacore

https://atorus-research.github.io/metacore/
Other
33 stars 7 forks source link

Add a check for non-unique label function #65

Closed statasaurus closed 1 year ago

statasaurus commented 1 year ago
metacore$var_spec %>% 
  mutate(var1 = str_remove(variable, "[[:alnum:]]+\\.")) %>% 
  group_by(var1) %>% 
  mutate(n_lab = n_distinct(label)) %>% 
 filter(n_lab > 1)