BIOL 300 Practice Hub/Fix the Code
R Questions →

Practice

Fix the Code

Each question shows R code with a mistake in it. Edit any block directly to fix it, then click Check Answer to run and see if you got it right.

Initialising R…
Q1One-Way ANOVA

One-Way ANOVA: maze-completion time across sound conditions

A biology student is studying whether different types of "productivity music" affect how quickly lab mice complete a simple maze. Mice are randomly assigned to one of three sound conditions: silence, classical, or lofi_beats. The response variable is maze completion time (seconds), stored in a CSV file.

The student imports and inspects the data:

The student wants to test H₀: μsilence = μclassical = μlofi_beats vs. HA: at least one group mean differs, with α = 0.05. They write:

Task

Identify and fix any mistakes in the code so it runs correctly.

Waiting for R…