#' This function compares two dataframes and generates a useful comparison html page
#'
#' This will reveal all columns and rows that are in one df and not the other, and will also highlight all different cells
#' @param df1 is the first dataframe
#' @param df2 is the second dataframe
#' @keywords compare dataframes
#' @export
#' @examples
#' compare_dfs(my_df1, my_df2)
compare_dfs <- function(df1, df2){
comparison <- daff::diff_data(df1, df2)
daff::render_diff(comparison)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.