count the number of duplicate rows per value in a specific column in r
# Sample datadf <- data.frame(id = c(1, 2, 3, 4, 4, 5),
value = c("A", "B", "A", "C", "C", "B"))
# Count the number of duplicate rows per value in the 'value' columndup_count <- table(df$value)
# Display the count of duplicate rows per valuedup_count