Science Score: 13.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
○.zenodo.json file
-
○DOI references
-
○Academic publication links
-
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (14.9%) to scientific vocabulary
Last synced: 10 months ago
·
JSON representation
Repository
Compare Data Frames
Basic Info
- Host: GitHub
- Owner: eutwt
- License: other
- Language: R
- Default Branch: main
- Homepage: https://eutwt.github.io/versus/
- Size: 4.61 MB
Statistics
- Stars: 7
- Watchers: 1
- Forks: 0
- Open Issues: 1
- Releases: 4
Created over 2 years ago
· Last pushed about 2 years ago
Metadata Files
Readme
Changelog
License
README.Rmd
---
output: github_document
---
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```
# versus
[](https://github.com/eutwt/versus/actions/workflows/R-CMD-check.yaml) [](https://CRAN.R-project.org/package=versus) [](https://app.codecov.io/gh/eutwt/versus?branch=main)
A toolset for interactively exploring the differences between two data frames.
## Installation
```{r, eval = FALSE}
install.packages("versus")
# Or install the development version from GitHub with
# pak::pak("eutwt/versus")
```
## Example
The two data frames below are used as an example to demonstrate functionality
```{r}
library(versus)
example_df_a
example_df_b
```
Use `compare()` to create a comparison of two tables.
A comparison contains:
- `compare()$intersection`: columns in both tables and rows with differing values
- `compare()$unmatched_cols`: columns in only one table
- `compare()$unmatched_rows`: rows in only one table
```{r}
comparison <- compare(example_df_a, example_df_b, by = car)
comparison
```
Use `value_diffs()` to see the values that are different.
```{r}
comparison |>
value_diffs(disp)
comparison |>
value_diffs_stacked(c(mpg, disp))
```
Use `weave_diffs_*()` to see the differing values in context.
```{r}
comparison |>
weave_diffs_wide(disp)
comparison |>
weave_diffs_wide(c(mpg, disp))
comparison |>
weave_diffs_long(disp)
```
Use `slice_diffs()` to get the rows with differing values from one table.
```{r}
comparison |>
slice_diffs("a", mpg)
```
Use `slice_unmatched()` to get the rows unmatched rows from one or both tables.
```{r}
comparison |>
slice_unmatched("a")
comparison |>
slice_unmatched_both()
```
Use `summary()` to see what kind of differences were found
```{r}
summary(comparison)
```
Owner
- Name: elephantupthewrongtree
- Login: eutwt
- Kind: user
- Repositories: 4
- Profile: https://github.com/eutwt
GitHub Events
Total
- Watch event: 1
- Pull request event: 1
- Fork event: 1
Last Year
- Watch event: 1
- Pull request event: 1
- Fork event: 1
Issues and Pull Requests
Last synced: 10 months ago
All Time
- Total issues: 5
- Total pull requests: 28
- Average time to close issues: 3 days
- Average time to close pull requests: 18 days
- Total issue authors: 1
- Total pull request authors: 1
- Average comments per issue: 0.6
- Average comments per pull request: 0.75
- Merged pull requests: 24
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 0
- Pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Issue authors: 0
- Pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
- eutwt (5)
Pull Request Authors
- eutwt (32)
Top Labels
Issue Labels
Pull Request Labels
Packages
- Total packages: 1
-
Total downloads:
- cran 232 last-month
- Total dependent packages: 0
- Total dependent repositories: 0
- Total versions: 4
- Total maintainers: 1
cran.r-project.org: versus
Compare Data Frames
- Homepage: https://eutwt.github.io/versus/
- Documentation: http://cran.r-project.org/web/packages/versus/versus.pdf
- License: MIT + file LICENSE
-
Latest release: 0.3.0
published over 2 years ago
Rankings
Forks count: 27.9%
Dependent packages count: 28.8%
Stargazers count: 34.6%
Dependent repos count: 36.9%
Average: 43.0%
Downloads: 86.7%
Maintainers (1)
Last synced:
10 months ago
Dependencies
DESCRIPTION
cran
- dplyr * imports
- rlang * imports
- testthat >= 3.0.0 suggests
.github/workflows/R-CMD-check.yaml
actions
- actions/checkout v3 composite
- r-lib/actions/check-r-package v2 composite
- r-lib/actions/setup-pandoc v2 composite
- r-lib/actions/setup-r v2 composite
- r-lib/actions/setup-r-dependencies v2 composite
.github/workflows/pkgdown.yaml
actions
- JamesIves/github-pages-deploy-action v4.4.1 composite
- actions/checkout v3 composite
- r-lib/actions/setup-pandoc v2 composite
- r-lib/actions/setup-r v2 composite
- r-lib/actions/setup-r-dependencies v2 composite
.github/workflows/test-coverage.yaml
actions
- actions/checkout v3 composite
- actions/upload-artifact v3 composite
- r-lib/actions/setup-r v2 composite
- r-lib/actions/setup-r-dependencies v2 composite