Answers for "count equal values in a vector"

R
0

count equal values in a vector

# If index != 1 then you have multiple value for the same subject in your column
df %>%
  group_by(id,role) %>%
  mutate(index = n_distinct(role))
Posted by: Guest on January-28-2022

Code answers related to "count equal values in a vector"

Browse Popular Code Answers by Language