diffr: Metrics of Difference for Comparing Pairs of Maps
構造の違いを可視化する
- CRAN: http://cran.r-project.org/web/packages/diffr/index.html
- GitHub: https://github.com/muschellij2/diffr
> library(diffr)
バージョン: 0.0.1
関数名 | 概略 |
---|---|
diffr |
Diff 2 files side by side |
diffrOutput |
Wrapper functions for using diffr in shiny |
diffr
2つのファイル構造を比較する
> library(diffr)
> file1 = tempfile()
> writeLines("hello, world!\n", con = file1)
> file2 = tempfile()
> writeLines(paste0(
+ "hello world?\nI don't get it\n",
+ paste0(sample(letters, 65, replace = TRUE), collapse = "")), con = file2)
> diffr(file1, file2, before = "f1", after = "f2")
diffrOutput
Shiny上で利用するためのラッパー関数