#' Consensus network
#'
#' Based on the tallied votes using the \code{\link{edge_voting}} function, it provides the final consensus network.
#'
#' @param vote_tally Data frame of tallied votes as defined in the \code{\link{edge_voting}} function
#' @return A data frame, filtered by majority vote decision (51% or better).
#'
#' @examples
#' consensus(tallied_votes)
consensus <- function(vote_tally) {
kept_edges <- vote_tally %>%
dplyr::filter(., majority != 0)
return(kept_edges)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.