compareDF: Do a Git Style Diff of the Rows Between Two Dataframes with Similar Structure

2つのデータフレーム構造の違いをGit風に表示する

> library(compareDF)

バージョン: 1.0.0


関数名 概略
compare_df Compare Two dataframes
results_2010 Data set created set to show off the package capabilities - Results of students for 2010
results_2011 Data set created set to show off the package capabilities - Results of students for 2011

compare_df

データフレームの比較

Arguments

  • df_new
  • df_old
  • group_col
  • exclude
  • limit_html
  • tolerance
> old_df <- data.frame(var1 = c("A", "B", "C"),
+                      val1 = c(1, 2, 3))
> new_df <- data.frame(var1 = c("A", "B", "C"),
+                      val1 = c(1, 2, 4))
> 
> ctable <- compare_df(new_df, old_df, c("var1"))
Creating comparison table...
Loading required namespace: htmlTable
Creating HTML table for first 100 rows
> # ctable$html_output