On this page:
Datasets:   Dataframes and Matrices
9.3

Datasets: Dataframes and Matrices🔗ℹ

datasets contributors

Work in progress. This manual covers basic dataset loading and format conversion. The explanations and worked examples are still being expanded.

datasets brings small, attributed datasets into Racket programs. Start with load-iris or choose a dataset with load-dataset. The default result is a Polars dataframe; tables, matrices, and data-frame objects are available through the same loading interface.

The Guide is a practical introduction with evaluated examples. The Reference defines the loaders, selection rules, and conversion procedures. For the lightweight table API and the catalog of datasets-core, see Datasets Core. Each other package catalogs its own datasets: R Datasets Catalog, UCI Datasets Catalog, ISLR2 and ESL Datasets Catalog and Fetched Datasets Catalog.

    1 Guide

      1.1 Installation and a first dataset

      1.2 Discovering datasets and selecting columns

      1.3 A first look at the Palmer penguins

      1.4 Grouping categorical data

      1.5 Handling missing observations

      1.6 Datasets from ISLR2

      1.7 Datasets from ESL

      1.8 Image datasets

      1.9 Preparing a numeric matrix

      1.10 Using mutable data-frame objects

      1.11 Interpreting counts and time series

      1.12 Generating synthetic data

      1.13 Using core data in another package

    2 Datasets from R

      2.1 ggplot2

    3 Reference

      3.1 Dataset loaders

        3.1.1 Named loaders

      3.2 Synthetic generators

      3.3 Value representations

      3.4 Polars conversion

      3.5 Matrix conversion

      3.6 Data-frame conversion

    Index