issues: Prints issues found in other functions

Description Usage Arguments Details Examples

View source: R/issues.R

Description

Prints messages with issues found in X (or one of its columns) after running either diagnose(X) or compare(X)

Usage

1
issues(res, i = 0, verbose = FALSE)

Arguments

res

A list returned from diagnose() or compare()

i

Index or name of column from which to print issues

verbose

Specify what issues were found in each column

Details

This function interprets the results from diagnose() and compare(), and generates a comprehensive report printed as messages to the console; for more information about what gets printed consult vignette("doctr_diagnose") or vignette("doctr_examine")

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
## Not run: 
library(tidyverse)
  
# Getting issues from diagnostic
txhousing %>% diagnose() %>% issues()
  
# Getting issues from comparison
txhousing %>% compare(txhousing) %>% issues()
  
# Getting issues from specific variable
txhousing %>% diagnose() %>% issues("inventory", verbose = TRUE)
txhousing %>% compare(sample_n(txhousing, 20)) %>% issues(1, verbose = TRUE)

## End(Not run)

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

Related to issues in doctr...