Skip to content

the-graph-courses/inspectdf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

inspectdf

Minimal replacement for the course functions used from {inspectdf}:

  • inspect_cat()
  • inspect_num()
  • inspect_types()
  • show_plot(inspect_cat(...))
  • show_plot(inspect_num(...))
  • show_plot(inspect_types(...))

The GitHub repository and installed R package are both named {inspectdf}, so existing course code can keep using library(inspectdf) and inspectdf::inspect_cat().

Why this exists

The upstream {inspectdf} package has been fragile with newer {dplyr} versions in course examples like:

inspect_cat(my_data) |>
  show_plot()

This package avoids the upstream dplyr-heavy plotting path and implements only the course workflow we need.

Install

Remove the old {inspectdf} first, then install this replacement from GitHub with {pacman}.

if ("inspectdf" %in% rownames(installed.packages())) {
  remove.packages("inspectdf")
}

pacman::p_install_gh("the-graph-courses/inspectdf")
library(inspectdf)

If you prefer {pak}:

if (!requireNamespace("pak", quietly = TRUE)) {
  install.packages("pak")
}

pak::pak("the-graph-courses/inspectdf")
library(inspectdf)

Examples

inspect_cat(iris) |>
  show_plot()

inspect_num(iris) |>
  show_plot()

inspect_types(iris) |>
  show_plot()

Existing course examples also work with the tidyverse pipe:

library(dplyr)
library(inspectdf)

starwars %>%
  inspect_cat() %>%
  show_plot()

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages