animal_dance {discovr} | R Documentation |
Dancing cats and dogs data
Description
A dataset from Field, A. P. (2026). Discovering statistics using R and RStudio (2nd ed.). London: Sage.
Usage
animal_dance
Format
A tibble with 270 rows and 3 variables.
Details
Fictional data about dancing cats and dogs. A researcher was interested in whether animals could be trained to dance. He took 200 cats and 70 dogs and tried to train them to line-dance by giving them either food or affection as a reward for dance-like behaviour. At the end of the week he counted how many animals could line-dance and how many could not. The object contains the following variables:
-
training: factor describing whether the animal was trained using food of affection as a reward
-
dance: factor describing whether the cat danced or not
-
animal: factor describing whether the animal was a cat or a dog
Source
www.discovr.rocks/csv/animal_dance.csv