cataScience cataScience hex logo featuring the maintainer's two cats

CRAN status Lifecycle: mature CRAN downloads R-CMD-check

A Journey of Data Science — an interactive training app for people who are new to data: import → clean → visualize → understand, with AI as your assistant and you as the judge.

Developed for WHO data trainings (Global Health Learning Center and country-office sessions), but the content is general: anyone learning data science or starting to use AI assistants at work can use it for self-study.

Documentation: https://shanlong-who.github.io/cataScience/

Open the cat café classroom

The online app runs R in your browser with Shinylive. No R installation is needed; allow time for the runtime and packages to download on the first visit. kNN imputation requires the local R app and the optional VIM package.

Guides

Guide What you will learn
Getting started Launch the app, follow the module map and use the example data
Data-quality workflow Compare cleaning choices, inspect text and joins, and explain a chart

Use the online classroom or launch it from R.

Installation

install.packages("cataScience")

or

# install.packages("remotes")
remotes::install_github("shanlong-who/cataScience")

Usage

library(cataScience)
run_cata()

The classroom opens in English or Simplified Chinese. Use run_cata(language = "zh") to start in Chinese, or switch languages in the navigation bar.

Load the two original cat workbooks in Import. Compare four joins on separate two-row tables in Cleaning → Merge → Methodology.

Reusable functions

The package can also be used without launching Shiny:

library(cataScience)

measurements <- cata_example("cats")
personalities <- cata_example("cats2")
cata_missing(measurements)
cata_check_keys(measurements, "id")
joined <- cata_join(measurements, personalities, by = "id")
joined$audit

Other helpers include cata_read(), cata_flag_outliers(), cata_proportion(), cata_count_status(), cata_mice_demo(), theme_cata() and cata_export(). Use ?function_name for arguments and worked examples. Flagging a value does not delete or replace it.

Dependencies

The app opens in your browser. Everything runs locally — no internet connection is needed after installation.

Start with Import → Or use the example data, then follow Cleaning → Missing data, Cleaning → Outliers, Visualize and Quiz. Use Reset to original data to compare cleaning choices.

Use RStudio’s Stop button or Escape in the console to stop the app. Live demonstrations with an external AI assistant need internet access.

What is inside

Module Content
Import Upload Excel/CSV files, or use the bundled example data
Cleaning Missing data (MCAR/MAR/MNAR, imputation), outliers, text, merging
Visualize Seven chart types, category sorting, two cat-chart comparisons and a one-page HTML report
Statistics Describing data, normal distribution, t-test, regression
AI Prompting levels, four practical AI tasks, AI-assisted analysis, a methods case study and AI safety
Quiz 27 questions with per-session topic filters

Development

Reusable functions live under R/; Shiny modules and teaching materials live under inst/app/. From this source checkout, use pkgload::load_all() and then run_cata() to try changes. Run devtools::test() and devtools::check() before a release. The existing installed package is unchanged until you install the new version.

Contact

Shanlong Ding — dings@who.int