Learn R Programming

BrailleR (version 1.0.2)

CheckIt: Investigate data objects

Description

Investigate an object, especially useful at any stage in a pipe chain.

Usage

CheckIt(x, ...)
check_it(x, ...)

what_is(x, ...) WhatIs(x, ...)

Value

These functions intentionally return (invisibly of course) the original input object so that they can be used within a pipe chain, as is commonly used by the Tidyverse.

Arguments

x

The object to be investigated and passed out again.

...

extra parameters to be passed on.

Author

A. Jonathan R. Godfrey

Details

The VI() functionality returns a character vector and is not useful inside a pipe chain. In effect, WhatIs() just adds the pipe chain convenience to the VI() tool, while CheckIt() looks at the structure of the data object. The latter is perhaps more useful if you are uncertain that the pipe chain is delivering what you hoped for.

Examples

Run this code
require(dplyr)
airquality %>% CheckIt() %>% arrange(Ozone) %>% head()

Run the code above in your browser using DataLab