Learn R Programming

visdat (version 0.0.4.9500)

vis_guess: Visualise a data.frame like vis_dat, but takes a guess at to telling you what it contains.

Description

vis_guess just like vis_dat, vis_guess gives you an at-a-glance ggplot object of what is inside a dataframe. Except this time, vis_guess uses `readr` to help it guess what the individual cells are. These cells are coloured according to what class they are and whether the values are missing. As vis_guess returns a ggplot object, it is very easy to customize. Currently very slow.

Usage

vis_guess(x)

Arguments

x
a data.frame object

Examples

Run this code
## Not run: 
# library(tidyr)
# library(readr) # to load the `readr:::collectorGuess` function
# library(dplyr)
# library(visdat)
# 
# vis_guess(example2)
# 
# dat_messy <-
#   example2 %>%
#   mutate(capacity = ifelse(capacity <= 60500,
#                            yes = "2010/10/10",
#                            no = capacity))
# 
# vis_guess(dat_messy)
# ## End(Not run)

Run the code above in your browser using DataLab