Use prop.table() to add a proportion column to a dplyr::count() tibble.
add_prop(.data, n, sum = FALSE)A data frame with a count column.
The column name with a count, usually n from dplyr::count().
Should cumsum() be called on the new p column.
A data frame with the new column p.
mean(x %in% y)