SandwichAnts: Sandwich Ants

Description Format Details Source Examples


Ant Counts on samples of different sandwiches


A data frame with 24 observations on the following 5 variables.

  • Butter Butter on the sandwich? no

  • Filling Type of filling: Ham \& Pickles, Peanut Butter, or Vegemite

  • Bread Type of bread: Multigrain, Rye, White, or Wholemeal

  • Ants Number of ants on the sandwich

  • Order Trial number


As young students, Dominic Kelly and his friends enjoyed watching ants gather on pieces of sandwiches. Later, as a university student, Dominic decided to study this with a more formal experiment. He chose three types of sandwich fillings (vegemite, peanut butter, and ham \& pickles), four types of bread (multigrain, rye, white, and wholemeal), and put butter on some of the sandwiches.
To conduct the experiment he randomly chose a sandwich, broke off a piece, and left it on the ground near an ant hill. After several minutes he placed a jar over the sandwich bit and counteed the number of ants. He repeated the process, allowing time for ants to return to the hill after each trial, until he had two samples for each combination of the factors.
This dataset has only sandwiches with no butter. The data in SandwichAnts2 adds information for samples with butter.


Margaret Mackisack, “Favourite Experiments: An Addendum to What is the Use of Experiments Conducted by Statistics Students?", Journal of Statistics Education (1994)



Lock5withR documentation built on May 20, 2017, 5:23 a.m.

Search within the Lock5withR package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at

Please suggest features or report bugs in the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.