guess_exams: Guesses column types

Description Usage Arguments Details Examples

View source: R/misc.R

Description

Tries to guess what exams a table's variables should go through in disgnose()

Usage

1
guess_exams(X, verbose = FALSE)

Arguments

X

Table to be examined

verbose

Whether to specify the parsed column specifications

Details

This function samples 20% of X and tries to roughly identify what are its variables' types (money, count, etc.) and, once this process is done, it creates a table with the chosen exams given the identified types; you can learn more about the output of this function and how to customize it at vignette("doctr_diagnose")

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
library(tidyverse)
  
# Running custom diagnostics on a table
exams <- guess_exams(txhousing)
exams$max_val[5] <- 2000000000
txhousing %>% diagnose(exams) %>% issues(verbose = TRUE)

## End(Not run)

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

Related to guess_exams in doctr...