R Dataset / Package Stat2Data / SandwichAnts


On this R-data statistics page, you will find information about the SandwichAnts data set which pertains to Sandwich Ants. The SandwichAnts data set is found in the Stat2Data R package. You can load the SandwichAnts data set in R by issuing the following command at the console data("SandwichAnts"). This will load the data into a variable called SandwichAnts. If R says the SandwichAnts data set is not found, you can try installing the package by issuing this command install.packages("Stat2Data") and then attempt to reload the data. If you need to download R, you can go to the R project website. You can download a CSV (comma separated values) version of the SandwichAnts R data set. The size of this file is about 1,689 bytes.

Sandwich Ants


Ant counts on samples of different sandwiches


A dataset with 48 observations on the following 5 variables.

R project statistics dataset table
Trial Trial number
Bread Type of bread: Multigrain, Rye, White, or Wholemeal
Filling Type of filling: HamPickles, PeanutButter, or Vegemite
Butter Butter on the sandwich? no or yes
Ants Number of ants on the sandwich


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 three factors.


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


Dataset imported from https://www.r-project.org.

Title Authored on Content type
OpenIntro Statistics Dataset - dream August 9, 2020 - 12:25 PM Dataset
OpenIntro Statistics Dataset - winery_cars August 9, 2020 - 2:38 PM Dataset
R Dataset / Package HSAUR / toothpaste March 9, 2018 - 1:06 PM Dataset
R Dataset / Package HSAUR / pottery March 9, 2018 - 1:06 PM Dataset
R Dataset / Package HistData / Guerry March 9, 2018 - 1:06 PM Dataset
<iframe src="https://r-data.pmagunia.com/iframe/r-dataset-package-stat2data-sandwichants.html" frameBorder="0" width="100%" height="307px" />
Attachment Size
dataset-35433.csv 1.65 KB
Dataset License
GNU General Public License v2.0
Documentation License
GNU General Public License v2.0

This documentation is licensed under GPLv3 or later.