compare: Compares two tables

Description Usage Arguments Details Examples

View source: R/compare.R

Description

Compares the profiles of two tables, checking if they can be considered similar enough

Usage

1
compare(X, Y, ci = 0.05)

Arguments

X

Table used as standard for comparison

Y

Table to be evaluated

ci

The size of the confidence interval

Details

This funcion takes 100 random samples with replacement of table X, creating confidence intervals (of size ci) for its summary statistics; it then verifies what summary statistics of Y don't fall inside these confidence intervals and creates comprehensive reports about them (you can access these with issues())

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 
library(tidyverse)
  
# Comparing a table to itself
txhousing %>% compare(txhousing) %>% issues()
  
# Comparing two different tables
txhousing %>% compare(sample_n(txhousing, 20)) %>% issues(verbose = TRUE)

## End(Not run)

doctr documentation built on May 4, 2017, 5:11 p.m.

Related to compare in doctr...