examples/useR2017.md

title: 'Daff: diff, patch and merge for data.frames' author: | | Gregory R. Warnes^1^ and Edwin de Jonge^2^ | | 1. Medidata Solutions Inc. (mdsol.com) | 2. Statistics Netherlands (cbs.nl) output: html_document: default institute: - $^1$Medidata Solutions Inc. - $^2$Statistics Netherlands (cbs.nl) references: - id: fitzpatrick title: Coopy highlighter diff format for tables author: - family: Fitzpatrick given: Paul URL: 'http://specs.okfnlabs.org/tabular-diff-format' type: article-journal issued: year: 2014 month: 5

Keywords: Reproducible research, data versioning

Webpages: https://CRAN.R-project.org/package=daff, https://github.com/edwindj/daff

In data analysis, it can be necessary to compare two files comparing tabular data. Unfortunately, existing tools have been customized for comparing source code or other text files, and are unsuitable for comparing tabular data.

The daff R package provides tools for comparing and tracking changes in tabular data stored in data.frames. daff wraps Paul Fitz's multi-language daff package (https://github.com/paulfitz/daff), which generates data diff that capture row and column modifications, reorders, additions, and deletions. These data diffs follow a standard format (https://paulfitz.github.io/daff-doc/spec.html) which can be used to HTML formatted diffs, summarize changes, and even patch (a new version of) input data.

daff augments brings the utility of source-code change tracking tools to tabular data, enabling data versioning as a component of software development and reproducible research.

References



edwindj/daff documentation built on Feb. 16, 2024, 3:12 p.m.