R/compare_dfs.R

Defines functions compare_dfs

Documented in compare_dfs

#' 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)
}
Kidapt/keda documentation built on Nov. 23, 2019, 3:35 a.m.